From: Jo Zzsi Date: Sun, 14 Dec 2025 17:06:12 +0000 (-0500) Subject: feat(dracut-systemd): preserve the content of /var/lib/systemd X-Git-Tag: 110~254 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd370b393e319e59b44b611e5fe28de52615d516;p=thirdparty%2Fdracut-ng.git feat(dracut-systemd): preserve the content of /var/lib/systemd Persist the content of /var/lib/systemd in memory during initramfs execution by linking it to /run/initramfs/systemd . One of the motivation of this PR is to preserved coredumps when systemd-coredump dracut module is included in the initrfamfs. In general, this approach would requires less customization of systemd configuration for dracut. --- diff --git a/modules.d/77dracut-systemd/dracut-tmpfiles.conf b/modules.d/77dracut-systemd/dracut-tmpfiles.conf index 3c21ce81f..ec3d04b57 100644 --- a/modules.d/77dracut-systemd/dracut-tmpfiles.conf +++ b/modules.d/77dracut-systemd/dracut-tmpfiles.conf @@ -1,3 +1,5 @@ d /run/initramfs 0755 root root - d /run/initramfs/log 0755 root root - +d /run/initramfs/systemd 0755 root root - L /var/log - - - - ../run/initramfs/log +L /var/lib/systemd - - - - ../../run/initramfs/systemd