Skip to content

Commit

Permalink
Sort kernel versions based on the numeric version bump
Browse files Browse the repository at this point in the history
Signed-off-by: Shiva Krishna, Merla <[email protected]>
  • Loading branch information
shivamerla authored and tariq1890 committed Mar 22, 2024
1 parent dfcfd4d commit e37ec0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/generate-ci-config
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export DEBIAN_FRONTEND=noninteractive
apt-get update -y -qq > /dev/null

# Generate a list of all kernel versions which have NVIDIA precompiled driver packages available.
SUPPORTED_KERNELS=$(apt-cache search linux-objects-nvidia-${DRIVER_BRANCH}-server.*${LTS_KERNEL}.*${KERNEL_FLAVOR} | awk '{print $1}' | grep -v "open" | sort | sed -e "s/^.*${LTS_KERNEL}/${LTS_KERNEL}/")
SUPPORTED_KERNELS=$(apt-cache search linux-objects-nvidia-${DRIVER_BRANCH}-server.*${LTS_KERNEL}.*${KERNEL_FLAVOR} | awk '{print $1}' | grep -v "open" | sed -e "s/^.*${LTS_KERNEL}/${LTS_KERNEL}/" | sort -n -t'-' -k2)

# Grab latest driver version for nvidia-utils-${DRIVER_BRANCH}-server
DRIVER_VERSION=$(apt-cache show nvidia-utils-${DRIVER_BRANCH}-server |grep Version |awk '{print $2}' | cut -d'-' -f1 | head -n 1)
Expand Down

0 comments on commit e37ec0b

Please sign in to comment.