Skip to content

Commit

Permalink
Update check_running_kernel
Browse files Browse the repository at this point in the history
Add Proxmox VE 8.0 support
  • Loading branch information
thorstenspille authored Sep 29, 2023
1 parent 95e02e5 commit db23af0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion running-kernel/check_running_kernel
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db23af0

Please sign in to comment.