]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
feat(dracut-systemd): preserve the content of /var/lib/systemd
authorJo Zzsi <jozzsicsataban@gmail.com>
Sun, 14 Dec 2025 17:06:12 +0000 (12:06 -0500)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Mon, 15 Dec 2025 12:12:00 +0000 (07:12 -0500)
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.

modules.d/77dracut-systemd/dracut-tmpfiles.conf

index 3c21ce81f71a3f0a4925e9b211954118678f7419..ec3d04b57c0f5f31d98f45718c7967a439df2555 100644 (file)
@@ -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