From db23af03ddc43d92e8824141a5076c22e1505735 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Fri, 29 Sep 2023 23:04:15 +0200 Subject: [PATCH] Update check_running_kernel Add Proxmox VE 8.0 support --- running-kernel/check_running_kernel | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/running-kernel/check_running_kernel b/running-kernel/check_running_kernel index 8e1ddf7..484b6e7 100644 --- a/running-kernel/check_running_kernel +++ b/running-kernel/check_running_kernel @@ -31,7 +31,11 @@ uname=$(uname -r) major_version=${uname:0:3} if [[ "$uname" == *"-pve" ]]; then - filter=pve-kernel-$major_version + if [[ "$(lsb_release -cs 2> /dev/null)" == "bookworm" ]]; then + filter=proxmox-kernel-$major_version + else + filter=pve-kernel-$major_version + fi elif [[ "$uname" == *"-mvebu" ]]; then latest_kernel=$(dpkg -l | grep -m1 linux-image-current-mvebu | rev | cut -d ' ' -f2 | rev) else