mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-05 20:42:54 +00:00
Fix the kernel headers enabling
This commit is contained in:
@@ -39,13 +39,17 @@ commands:
|
||||
user: nobody
|
||||
sysvInitAction: respawn
|
||||
shell: '/bin/sql_exporter -config.file=/etc/sql_exporter_autoscaling.yml -web.listen-address=:9499'
|
||||
- name: symlink-kernel-modules
|
||||
- name: enable-kernel-modules
|
||||
user: root
|
||||
sysvInitAction: respawn
|
||||
shell: |
|
||||
mkdir -p /lib/modules
|
||||
ln -s /neonvm/tools/lib/modules /lib/modules
|
||||
export PATH="/neonvm/tools/bin:$PATH"
|
||||
sysvInitAction: sysinit
|
||||
# Symlinking is impossible due to the files being mounted from
|
||||
# iso9660, and many tools require mmaping the files, and iso9660
|
||||
# doesn't support that. So we copy the files instead.
|
||||
shell: mkdir -p /lib/modules && cp /neonvm/tools/lib/modules/* /lib/modules -R
|
||||
- name: enable-bpfs
|
||||
user: root
|
||||
sysvInitAction: sysinit
|
||||
shell: mkdir -p /sys/kernel/debug && mount -t debugfs debugfs /sys/kernel/debug && mount -t bpf bpf /sys/fs/bpf && chmod 755 /sys/fs/bpf
|
||||
# Rsyslog by default creates a unix socket under /dev/log . That's where Postgres sends logs also.
|
||||
# We run syslog with postgres user so it can't create /dev/log. Instead we configure rsyslog to
|
||||
# use a different path for the socket. The symlink actually points to our custom path.
|
||||
|
||||
@@ -39,12 +39,17 @@ commands:
|
||||
user: nobody
|
||||
sysvInitAction: respawn
|
||||
shell: '/bin/sql_exporter -config.file=/etc/sql_exporter_autoscaling.yml -web.listen-address=:9499'
|
||||
- name: symlink-kernel-modules
|
||||
- name: enable-kernel-modules
|
||||
user: root
|
||||
sysvInitAction: sysinit
|
||||
shell: |
|
||||
mkdir -p /lib/modules
|
||||
ln -s /neonvm/tools/lib/modules /lib/modules
|
||||
# Symlinking is impossible due to the files being mounted from
|
||||
# iso9660, and many tools require mmaping the files, and iso9660
|
||||
# doesn't support that. So we copy the files instead.
|
||||
shell: mkdir -p /lib/modules && cp /neonvm/tools/lib/modules/* /lib/modules -R
|
||||
- name: enable-bpfs
|
||||
user: root
|
||||
sysvInitAction: sysinit
|
||||
shell: mkdir -p /sys/kernel/debug && mount -t debugfs debugfs /sys/kernel/debug && mount -t bpf bpf /sys/fs/bpf && chmod 755 /sys/fs/bpf
|
||||
# Rsyslog by default creates a unix socket under /dev/log . That's where Postgres sends logs also.
|
||||
# We run syslog with postgres user so it can't create /dev/log. Instead we configure rsyslog to
|
||||
# use a different path for the socket. The symlink actually points to our custom path.
|
||||
|
||||
@@ -327,7 +327,7 @@ fn get_override_path_env() -> String {
|
||||
///
|
||||
/// The generator tools have the path to the binary
|
||||
/// that will be used to generate the profile.
|
||||
/// If the path is `None`, the tool will be searched
|
||||
/// If the path is [`None`], the tool will be searched
|
||||
/// in the system's `PATH` using the default name.
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum ProfileGenerator {
|
||||
|
||||
Reference in New Issue
Block a user