[pve-devel] [PATCH pve-kernel-meta v2 5/8] proxmox-boot: remove now obsolete EFI/proxmoxdir if it exists

Stoiko Ivanov s.ivanov at proxmox.com
Thu Mar 3 20:07:54 CET 2022


this can be dropped in the next major version - so keeping it as
separate commit.

Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
new in v2

 proxmox-boot/zz-proxmox-boot | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/proxmox-boot/zz-proxmox-boot b/proxmox-boot/zz-proxmox-boot
index fa0ea4a..39e3bea 100755
--- a/proxmox-boot/zz-proxmox-boot
+++ b/proxmox-boot/zz-proxmox-boot
@@ -163,6 +163,12 @@ remove_old_kernels() {
 		rm -rf "${esp}/loader/entries/proxmox-${kver}.conf"
 	done
 
+	# FIXME: can be dropped in PVE 8.0
+	if [ -d "${esp}/${PMX_ESP_DIR}" ]; then
+		warn "	Removing legacy kernel location ${esp}/${PMX_ESP_DIR}"
+		rm -rf "${esp:?}/${PMX_ESP_DIR}"
+	fi
+
 }
 
 set -- $DEB_MAINT_PARAMS
-- 
2.30.2






More information about the pve-devel mailing list