Fix the kernel headers enabling

This commit is contained in:
Victor Polevoy
2025-08-02 14:03:25 +02:00
parent 9cae494555
commit 891c1fe512
3 changed files with 20 additions and 11 deletions

View File

@@ -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.

View File

@@ -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.

View File

@@ -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 {