Update check_running_kernel

Add Proxmox VE 8.0 support
This commit is contained in:
Thorsten Spille 2023-09-29 23:04:15 +02:00 committed by GitHub
parent 95e02e5f88
commit db23af03dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,11 @@
uname=$(uname -r) uname=$(uname -r)
major_version=${uname:0:3} major_version=${uname:0:3}
if [[ "$uname" == *"-pve" ]]; then 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 elif [[ "$uname" == *"-mvebu" ]]; then
latest_kernel=$(dpkg -l | grep -m1 linux-image-current-mvebu | rev | cut -d ' ' -f2 | rev) latest_kernel=$(dpkg -l | grep -m1 linux-image-current-mvebu | rev | cut -d ' ' -f2 | rev)
else else