]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(dracut-systemd): do not error out with new root= options handled by systemd
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Fri, 23 Jan 2026 10:59:55 +0000 (11:59 +0100)
committerBenjamin Drung <bdrung@ubuntu.com>
Wed, 4 Feb 2026 14:22:16 +0000 (15:22 +0100)
systemd-v258 [1] (gpt-auto-generator/fstab-generator) handles new options for
`root=`: gpt-auto-force, dissect, dissect-force, fstab, off.

[1] https://github.com/systemd/systemd/commit/3777c6e65aaa8dacacbd5be6e43ba644babe1ecd

modules.d/77dracut-systemd/dracut-cmdline.sh

index 585ad9c80ae615e5dfd173cf0f3e7d95867f07cf..c0f42e920018f009a2074073c86efb17e33134cb 100755 (executable)
@@ -59,7 +59,7 @@ case "${root#block:}${root_unset}" in
         root="block:${root#block:}"
         rootok=1
         ;;
-    UNSET | gpt-auto | tmpfs)
+    UNSET | gpt-auto | gpt-auto-force | dissect | dissect-force | fstab | tmpfs | off)
         # systemd's gpt-auto-generator/fstab-generator handles this case.
         rootok=1
         ;;