Skip to content

Commit 30601fe

Browse files
committed
TOOL-27512 LTS 24.04: Stop using HWE kernels when fetching kernel versions
PR URL: https://www.github.com/delphix/linux-pkg/pull/336
1 parent 48792e6 commit 30601fe

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

lib/common.sh

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,21 +1113,13 @@ function get_kernel_version_for_platform_from_apt() {
11131113
# image for that particular platform. For instance, Ubuntu has a
11141114
# meta-package for AWS called 'linux-image-aws', which depends on
11151115
# package 'linux-image-4.15.0-1027-aws'. The latter is the linux image
1116-
# for kernel version '4.15.0-1027-aws'. We use this depenency to figure
1116+
# for kernel version '4.15.0-1027-aws'. We use this dependency to figure
11171117
# out the default kernel version for a given platform.
11181118
#
1119-
# The "generic" platform is a special case, since we want to use the
1120-
# hwe kernel image instead of the regular generic image.
1121-
#
11221119
# Note that while the default kernel is usually also the latest
11231120
# available, it is not always the case.
11241121
#
1125-
1126-
if [[ "$platform" != generic ]] && [[ "$UBUNTU_DISTRIBUTION" == noble ]]; then
1127-
package="linux-image-${platform}"
1128-
else
1129-
package="linux-image-${platform}-hwe-24.04"
1130-
fi
1122+
package="linux-image-${platform}"
11311123

11321124
if [[ "$(apt-cache show --no-all-versions "$package" \
11331125
2>/dev/null | grep Depends)" =~ linux-image-([^,]*-${platform}) ]]; then

0 commit comments

Comments
 (0)