]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix: disable hostonly_cmdline for Gentoo by default
authorNowa Ammerlaan <nowa@gentoo.org>
Fri, 24 Apr 2026 08:35:26 +0000 (10:35 +0200)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Wed, 29 Apr 2026 13:19:51 +0000 (09:19 -0400)
Our new users are stumbling over a check we added that prevents
accidentally including a cmdline for the live system in the initramfs
for the new install. Since the overall majority of our new users will
be setting a cmdline via the bootloader or system firmware anyway this
setting is not really useful for our users and only creates confusion
because there are now two knobs which control the same thing.

For that reason we would like to disable the hostonly_cmdline by
default (like Fedora does as well).

See-also: https://bugs.gentoo.org/971572
Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
dracut.conf.d/gentoo/01-gentoo.conf

index 218e70b99b07b623fe555f23325b931ee4a329cc..9e999e6a2cd3a8b8ee52084c4b64eff1f3b428cd 100644 (file)
@@ -2,6 +2,10 @@
 # local configuration files (/etc/...) are included.
 hostonly="yes"
 hostonly_mode="sloppy"
+# Delegate setting the cmdline to the bootloader or firmware. This
+# avoids setting an incorrect cmdline when building from a chroot. It
+# also avoids creating two distinct sources of truth for the cmdline.
+hostonly_cmdline="no"
 
 # Usage of ukify is controlled via sys-kernel/installkernel[+/-ukify].
 # Automatic delegation in sys-kernel/dracut is disabled here.