sys-kernel/dracut: disable opportunistic ukify

Closes: https://bugs.gentoo.org/961529
Closes: https://bugs.gentoo.org/961525
Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
This commit is contained in:
Nowa Ammerlaan
2025-08-16 21:08:08 +02:00
parent 4fe3ff393d
commit 02622fd1e4
2 changed files with 15 additions and 0 deletions

View File

@@ -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() {

View File

@@ -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" \