From 61b768c8e527e8f2e6f2ae4bce774e6201a4bce7 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Wed, 21 Oct 2026 20:18:04 +0200 Subject: [PATCH] MT#66365 Add support for systemd-coredumpd from Debian forky Starting with systemd v262 the coredumps are now handled by an active service, instead of relying on the kernel piping them directly into a program. We need to update the expected core dump pattern, and also add a service check to make sure the new daemon is running. Change-Id: Ic8232e67fdefd1376f5041c455645cdda3b9aceb --- templates/500_init-daemons-dabian.yaml.tt2 | 9 +++++++++ templates/610_kernel-sysctl-params.yaml.tt2 | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/templates/500_init-daemons-dabian.yaml.tt2 b/templates/500_init-daemons-dabian.yaml.tt2 index 593b632..1d46bdf 100644 --- a/templates/500_init-daemons-dabian.yaml.tt2 +++ b/templates/500_init-daemons-dabian.yaml.tt2 @@ -91,6 +91,15 @@ service: enabled: false running: false + systemd-coredumpd.service: +{{if ge .Env.DEBIAN_RELEASE "14"}} + enabled: true + running: true +{{else}} + enabled: false + running: false +{{end}} + victoria-metrics.service: enabled: [% monitoring.backend == 'prometheus' && prometheus.flavor == 'victoria-metrics' ? 'true' : 'false' %] running: [% monitoring.backend == 'prometheus' && prometheus.flavor == 'victoria-metrics' ? 'true' : 'false' %] diff --git a/templates/610_kernel-sysctl-params.yaml.tt2 b/templates/610_kernel-sysctl-params.yaml.tt2 index bdae708..56547a8 100644 --- a/templates/610_kernel-sysctl-params.yaml.tt2 +++ b/templates/610_kernel-sysctl-params.yaml.tt2 @@ -5,7 +5,7 @@ kernel-param: kernel.core_pattern: {{if ge .Env.DEBIAN_RELEASE "14"}} - value: "|/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %d %F %I" + value: "@@/run/systemd/coredumpd/kernel" {{else if ge .Env.DEBIAN_RELEASE "13"}} value: "|/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %d %F" {{else}}