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