From 9e69e24a528329e9172a1adaa394bf7b9d58f4c9 Mon Sep 17 00:00:00 2001 From: Victor Polevoy Date: Fri, 18 Jul 2025 12:52:45 +0200 Subject: [PATCH] Use the supplied kernel headers and modules --- compute/vm-image-spec-bookworm.yaml | 6 ++++++ compute/vm-image-spec-bullseye.yaml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/compute/vm-image-spec-bookworm.yaml b/compute/vm-image-spec-bookworm.yaml index 3372293f5d..6150641487 100644 --- a/compute/vm-image-spec-bookworm.yaml +++ b/compute/vm-image-spec-bookworm.yaml @@ -39,6 +39,12 @@ commands: user: nobody sysvInitAction: respawn shell: '/bin/sql_exporter -config.file=/etc/sql_exporter_autoscaling.yml -web.listen-address=:9499' + - name: symlink-kernel-modules + user: root + sysvInitAction: sysinit + shell: | + mkdir -p /lib/modules + ln -s /neonvm/tools/lib/modules /lib/modules # 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. diff --git a/compute/vm-image-spec-bullseye.yaml b/compute/vm-image-spec-bullseye.yaml index 4e5a0d3ca6..e205b0c9f0 100644 --- a/compute/vm-image-spec-bullseye.yaml +++ b/compute/vm-image-spec-bullseye.yaml @@ -39,6 +39,12 @@ commands: user: nobody sysvInitAction: respawn shell: '/bin/sql_exporter -config.file=/etc/sql_exporter_autoscaling.yml -web.listen-address=:9499' + - name: symlink-kernel-modules + user: root + sysvInitAction: sysinit + shell: | + mkdir -p /lib/modules + ln -s /neonvm/tools/lib/modules /lib/modules # 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.