File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -32,18 +32,22 @@ uname=$(uname -r)
32
32
major_version=${uname: 0: 3}
33
33
if [[ " $uname " == * " -pve" ]]; then
34
34
if [[ " $( lsb_release -cs 2> /dev/null) " == " bookworm" ]]; then
35
- filter=proxmox-kernel-$major_version
35
+ if [[ " $major -version" == " 6.5" ]]; then
36
+ filter=" proxmox-kernel-${major_version} .*-signed"
37
+ else
38
+ filter=" proxmox-kernel-${major_version} "
39
+ fi
36
40
else
37
- filter=pve-kernel-$major_version
41
+ filter=" pve-kernel-${ major_version} "
38
42
fi
39
43
elif [[ " $uname " == * " -mvebu" ]]; then
40
44
latest_kernel=$( dpkg -l | grep -m1 linux-image-current-mvebu | rev | cut -d ' ' -f2 | rev)
41
45
else
42
- filter=linux-image-$major_version
46
+ filter=" linux-image-$major_version "
43
47
fi
44
48
45
49
if [[ " $uname " != * " -mvebu" ]]; then
46
- latest_kernel=$( dpkg --get-selections | grep $filter | grep -E " \sinstall" | sort -V | tail -1 | cut -f1 | cut -d' -' -f3-)
50
+ latest_kernel=$( dpkg --get-selections | grep -E $filter | grep -E " \sinstall" | sort -V | tail -1 | cut -f1 | cut -d' -' -f3-)
47
51
fi
48
52
49
53
if [[ " $latest_kernel " == " $uname " ]]; then
You can’t perform that action at this time.
0 commit comments