This fixes a small issue in the postrm phase, the name of the unified kernel image is always uki.efi, not initrd.uefi.

Best regards,
Andrew


From 4ca978b9d1013cb7b28493af45cd4fbd57e1f76e Mon Sep 17 00:00:00 2001
From: Andrew Ammerlaan <andrewammerl...@gentoo.org>
Date: Wed, 15 Nov 2023 20:00:15 +0100
Subject: [PATCH] kernel-install.eclass: also cleanup uki.efi in postrm

Signed-off-by: Andrew Ammerlaan <andrewammerl...@gentoo.org>
---
 eclass/kernel-install.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass
index ea6ba3569a170..a0eceae8280bb 100644
--- a/eclass/kernel-install.eclass
+++ b/eclass/kernel-install.eclass
@@ -510,7 +510,7 @@ kernel-install_pkg_postrm() {
                local kernel_dir=${EROOT}/usr/src/linux-${dir_ver}
                local image_path=$(dist-kernel_get_image_path)
                ebegin "Removing initramfs"
-               rm -f "${kernel_dir}/${image_path%/*}"/initrd{,.uefi} &&
+               rm -f "${kernel_dir}/${image_path%/*}"/{initrd,uki.efi} &&
                        find "${kernel_dir}" -depth -type d -empty -delete
                eend ${?}
        fi

Reply via email to