summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2023-11-15 20:00:15 +0100
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2023-11-18 10:19:12 +0100
commit6a2b9c9cfb171e48f45073315e58a6fa360608f6 (patch)
treeede9627582157f6a7af4557d2a53bd3dc4274ecf /eclass
parentdev-tex/tex4ht: drop 20090611_p1038_p20210603 (diff)
downloadgentoo-6a2b9c9cfb171e48f45073315e58a6fa360608f6.tar.gz
gentoo-6a2b9c9cfb171e48f45073315e58a6fa360608f6.tar.bz2
gentoo-6a2b9c9cfb171e48f45073315e58a6fa360608f6.zip
kernel-install.eclass: also cleanup uki.efi in postrm
Nowadays the name of the unified kernel image is always uki.efi, not initrd.uefi. Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-install.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass
index ea6ba3569a17..a0eceae8280b 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