From 7bb145e4147f71860d3faa631a8592ed4d2de8dc Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 16 Jan 2023 11:02:06 -0500 Subject: [PATCH] Update kernel-clean.sh add pve-kernel-6.1 check --- misc/kernel-clean.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/misc/kernel-clean.sh b/misc/kernel-clean.sh index 5b072c18..824d708a 100644 --- a/misc/kernel-clean.sh +++ b/misc/kernel-clean.sh @@ -51,18 +51,23 @@ function check_root() { exit 1 else header_info - edge_kernel + other_kernel kernel_info kernel_clean fi } -function edge_kernel() { +function other_kernel() { if [[ "$current_kernel" == *"edge"* ]]; then echo -e "\n${CROSS} ${RD}ERROR:${CL} Proxmox ${BL}${current_kernel}${CL} Kernel Active" echo -e "\nAn Active PVE Kernel is required to use Kernel Clean\n" exit 1 fi + if [[ "$current_kernel" == *"6.1"* ]]; then + echo -e "\n${CROSS} ${RD}ERROR:${CL} Proxmox ${BL}${current_kernel}${CL} Kernel Active" + echo -e "\nAs 5.15 is the current default kernel in PVE 7.3 the package management directly depends on it, it's not possible to use this script while running 6.1 kernels. (the script tries to remove ALL old kernels) \n" + exit 1 + fi } function kernel_info() {