Skip to content

Commit

Permalink
Bump base kernel version for linux-image to 5.10.0-27
Browse files Browse the repository at this point in the history
  • Loading branch information
ianks committed Dec 18, 2024
1 parent 475ffda commit 62a068c
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions docker/linux-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,9 @@ max_kernel_version() {
}

main() {
local kmajor="5"
local kminor="10"
local kpatch="0"
local krelease="26"

# arch in the rust target
local arch="${1}" \
kversion="${kmajor}.${kminor}.${kpatch}-${krelease}"
kversion=5.10.0-27

local debsource="deb http://http.debian.net/debian/ bullseye main"
debsource="${debsource}\ndeb http://security.debian.org/ bullseye-security main"
Expand Down Expand Up @@ -161,7 +156,7 @@ main() {
;;
x86_64)
arch=amd64
kernel="${kmajor}\.${kminor}\.${kpatch}-.*-amd64"
kernel="${kversion}-amd64"
deps=(libcrypt1:"${arch}")
;;
*)
Expand Down Expand Up @@ -229,9 +224,8 @@ main() {
# Need an exact match for start and end, to avoid debug kernels.
# Afterwards, need to do a complex sort for the best kernel version,
# since the sort is non-trivial and must extract subcomponents.
local kpackages
kpackages=$(apt-cache search ^linux-image-"$kernel$" --names-only)
names=$(echo "$kpackages" | cut -d ' ' -f 1)
packages=$(apt-cache search ^linux-image-"$kernel$" --names-only)
names=$(echo "$packages" | cut -d ' ' -f 1)
kversions="${names//linux-image-/}"
kernel=$(max_kernel_version "$kversions")
fi
Expand Down

0 comments on commit 62a068c

Please sign in to comment.