commit:     81173a4a1d737a5b7ce5c8234a6a2ce7da73e1e7
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Mon Sep 15 12:54:53 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Oct  3 21:19:12 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81173a4a

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 <AT> 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 <AT> gentoo.org>

 .../{dracut-108-r3.ebuild => dracut-108-r4.ebuild} |  2 ++
 .../dracut-108-hostonly_cmdline-default-yes.patch  | 23 ++++++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/sys-kernel/dracut/dracut-108-r3.ebuild 
b/sys-kernel/dracut/dracut-108-r4.ebuild
similarity index 98%
rename from sys-kernel/dracut/dracut-108-r3.ebuild
rename to sys-kernel/dracut/dracut-108-r4.ebuild
index 7c6805122a0e..0129455c146b 100644
--- a/sys-kernel/dracut/dracut-108-r3.ebuild
+++ b/sys-kernel/dracut/dracut-108-r4.ebuild
@@ -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() {

diff --git 
a/sys-kernel/dracut/files/dracut-108-hostonly_cmdline-default-yes.patch 
b/sys-kernel/dracut/files/dracut-108-hostonly_cmdline-default-yes.patch
new file mode 100644
index 000000000000..2af85e918c97
--- /dev/null
+++ b/sys-kernel/dracut/files/dracut-108-hostonly_cmdline-default-yes.patch
@@ -0,0 +1,23 @@
+From f0086c2f629365bdca8df76364747f7eb9799b59 Mon Sep 17 00:00:00 2001
+From: Jo Zzsi <[email protected]>
+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
+

Reply via email to