public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] kernel-install.eclass: also cleanup uki.efi in postrm
@ 2023-11-15 19:12 Andrew Ammerlaan
  0 siblings, 0 replies; only message in thread
From: Andrew Ammerlaan @ 2023-11-15 19:12 UTC (permalink / raw)
  To: gentoo-dev

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 <andrewammerlaan@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 <andrewammerlaan@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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-15 19:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-15 19:12 [gentoo-dev] [PATCH] kernel-install.eclass: also cleanup uki.efi in postrm Andrew Ammerlaan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox