sys-kernel/dracut: Sync with Gentoo

It's from Gentoo commit 81173a4a1d737a5b7ce5c8234a6a2ce7da73e1e7.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2025-10-13 07:12:43 +00:00 committed by Krzesimir Nowak
parent df374e1092
commit 72b2da5718
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