commit:     02622fd1e4e2f2bc4e3933576b06b90ea77ad5bf
Author:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 16 19:08:08 2025 +0000
Commit:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Sat Aug 16 19:21:28 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02622fd1

sys-kernel/dracut: disable opportunistic ukify

Closes: https://bugs.gentoo.org/961529
Closes: https://bugs.gentoo.org/961525
Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>

 .../dracut/{dracut-108-r2.ebuild => dracut-108-r3.ebuild}   |  2 ++
 .../dracut/files/dracut-108-disable-ukify-magic.patch       | 13 +++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/sys-kernel/dracut/dracut-108-r2.ebuild 
b/sys-kernel/dracut/dracut-108-r3.ebuild
similarity index 98%
rename from sys-kernel/dracut/dracut-108-r2.ebuild
rename to sys-kernel/dracut/dracut-108-r3.ebuild
index 7e8564719b6f..6dcb2c228b36 100644
--- a/sys-kernel/dracut/dracut-108-r2.ebuild
+++ b/sys-kernel/dracut/dracut-108-r3.ebuild
@@ -107,6 +107,8 @@ PATCHES=(
        "${FILESDIR}"/${PN}-108-respect-objcopy-and-objdump.patch
        # https://github.com/dracut-ng/dracut-ng/pull/1538
        "${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
 )
 
 pkg_setup() {

diff --git a/sys-kernel/dracut/files/dracut-108-disable-ukify-magic.patch 
b/sys-kernel/dracut/files/dracut-108-disable-ukify-magic.patch
new file mode 100644
index 000000000000..05268206de0e
--- /dev/null
+++ b/sys-kernel/dracut/files/dracut-108-disable-ukify-magic.patch
@@ -0,0 +1,13 @@
+diff --git a/dracut.sh b/dracut.sh
+index e6d2d9f25..792ab3d34 100755
+--- a/dracut.sh
++++ b/dracut.sh
+@@ -2732,7 +2732,7 @@ if [[ $uefi == yes ]]; then
+     cp "$uefi_stub" "$tmp_uefi_stub"
+     "${OBJCOPY:-objcopy}" --remove-section .sbat "$tmp_uefi_stub" &> /dev/null
+ 
+-    if command -v ukify &> /dev/null; then
++    if false; then
+         dinfo "*** Using ukify to create UKI ***"
+         if ukify build \
+             --linux "$kernel_image" \

Reply via email to