sys-kernel/dracut: change hostonly_cmdline default back to yes

Changing hostonly_cmdline default should not be taken lightly. Disabling
it usually requires user action, since all necessary kernel command line
arguments must be specified explicitly.

Closes: https://bugs.gentoo.org/962586
Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
Part-of: https://github.com/gentoo/gentoo/pull/43791
Closes: https://github.com/gentoo/gentoo/pull/43791
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alexander Tsoy
2025-09-15 15:54:53 +03:00
committed by Sam James
parent a4e1db1c94
commit 81173a4a1d
2 changed files with 25 additions and 0 deletions

View File

@@ -109,6 +109,8 @@ PATCHES=(
"${FILESDIR}"/${PN}-108-elf-parsing-fixes.patch
# https://github.com/dracut-ng/dracut-ng/pull/1122#issuecomment-3192110686
"${FILESDIR}"/${PN}-108-disable-ukify-magic.patch
# https://github.com/dracut-ng/dracut-ng/pull/1562
"${FILESDIR}"/${PN}-108-hostonly_cmdline-default-yes.patch
)
pkg_setup() {

View File

@@ -0,0 +1,23 @@
From f0086c2f629365bdca8df76364747f7eb9799b59 Mon Sep 17 00:00:00 2001
From: Jo Zzsi <jozzsicsataban@gmail.com>
Date: Tue, 12 Aug 2025 07:17:52 -0400
Subject: [PATCH] revert(efaee44): hostonly_cmdline should continue to default
to yes
Despite the Fedora setting, let's keep the default to yes
for distributions that do not whish to overwrite the default.
---
dracut.conf.d/hostonly/10-hostonly.conf | 1 -
1 file changed, 1 deletion(-)
diff --git a/dracut.conf.d/hostonly/10-hostonly.conf b/dracut.conf.d/hostonly/10-hostonly.conf
index c5bd9b22..72fc9299 100644
--- a/dracut.conf.d/hostonly/10-hostonly.conf
+++ b/dracut.conf.d/hostonly/10-hostonly.conf
@@ -1,3 +1,2 @@
# optimize initrd to be as small as possible for faster boot performance, tailored to the current host
hostonly="yes"
-hostonly_cmdline=no
--
2.49.1