Update check_running_kernel

Fix kernel detection
This commit is contained in:
Thorsten Spille 2023-12-11 22:51:53 +01:00 committed by GitHub
parent 2c71bb486f
commit 6eba5baf48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,9 +30,9 @@
uname=$(uname -r)
major_version=${uname:0:3}
if [[ "$uname" == *"-pve" ]]; then
if [[ "$uname" == *"-pve"* ]]; then
if [[ "$(lsb_release -cs 2> /dev/null)" == "bookworm" ]]; then
if [[ "$major-version" == "6.5" ]]; then
if [[ "$major_version" == "6.5" ]]; then
filter="proxmox-kernel-${major_version}.*-signed"
uname=${uname}-signed
else