From a1a0fb932fb6c29ace66a5034809037d89b2afef Mon Sep 17 00:00:00 2001 From: Palash Gandhi Date: Wed, 5 Mar 2025 08:48:03 -0800 Subject: [PATCH] TOOL-27512 LTS 24.04: Stop using HWE kernels when fetching kernel versions PR URL: https://www.github.com/delphix/linux-pkg/pull/336 --- lib/common.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/common.sh b/lib/common.sh index 8ab5e044..73c1ad53 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -1113,21 +1113,13 @@ function get_kernel_version_for_platform_from_apt() { # image for that particular platform. For instance, Ubuntu has a # meta-package for AWS called 'linux-image-aws', which depends on # package 'linux-image-4.15.0-1027-aws'. The latter is the linux image - # for kernel version '4.15.0-1027-aws'. We use this depenency to figure + # for kernel version '4.15.0-1027-aws'. We use this dependency to figure # out the default kernel version for a given platform. # - # The "generic" platform is a special case, since we want to use the - # hwe kernel image instead of the regular generic image. - # # Note that while the default kernel is usually also the latest # available, it is not always the case. # - - if [[ "$platform" != generic ]] && [[ "$UBUNTU_DISTRIBUTION" == noble ]]; then - package="linux-image-${platform}" - else - package="linux-image-${platform}-hwe-24.04" - fi + package="linux-image-${platform}" if [[ "$(apt-cache show --no-all-versions "$package" \ 2>/dev/null | grep Depends)" =~ linux-image-([^,]*-${platform}) ]]; then