]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(systemd): systemd.volatile needs overlayfs kernel module
authorJo Zzsi <jozzsicsataban@gmail.com>
Sun, 25 May 2025 20:16:40 +0000 (16:16 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Mon, 26 May 2025 14:32:01 +0000 (10:32 -0400)
See https://www.freedesktop.org/software/systemd/man/latest/systemd-volatile-root.service.html

> This service is only enabled if full volatile mode is selected,
> for example by specifying "systemd.volatile=yes" on the kernel command line.
> This service runs only in the initrd, before the system transitions to the host's root directory.
> Note that this service is not used if "systemd.volatile=state" is used, as in that mode the root
> directory is non-volatile.

Support for this systemd feature has been added in systemd v242 .
https://github.com/systemd/systemd/pull/11243

modules.d/00systemd/module-setup.sh

index a91714aa419a44fee36b59e9e1a826575bf5b9a7..f7e3cda70b8fa827a5f93fa41e8cc2cd939aa795 100755 (executable)
@@ -21,7 +21,7 @@ config() {
 
 installkernel() {
     hostonly='' instmods autofs4 ipv6 dmi-sysfs
-    hostonly=$(optional_hostonly) instmods -s efivarfs
+    hostonly=$(optional_hostonly) instmods -s efivarfs overlay
 }
 
 # called by dracut