Skip to content

Commit 98e143d

Browse files
committed
DLPX-95001 use HWE kernel for ESX
PR URL: https://www.github.com/delphix/linux-pkg/pull/364
1 parent 70a78ae commit 98e143d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

default-package-config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ function kernel_update_upstream() {
277277
local tag_prefix_flavour
278278
case "${platform}" in
279279
generic)
280-
tag_prefix_flavour="Ubuntu"
280+
tag_prefix_flavour="Ubuntu-hwe"
281281
;;
282282
aws | azure | gcp | oracle)
283283
tag_prefix_flavour="Ubuntu-${platform}"

lib/common.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,10 +1157,17 @@ function get_kernel_version_for_platform_from_apt() {
11571157
# for kernel version '4.15.0-1027-aws'. We use this dependency to figure
11581158
# out the default kernel version for a given platform.
11591159
#
1160+
# The "generic" platform is a special case, since we want to use the
1161+
# hwe kernel image instead of the regular generic image.
1162+
#
11601163
# Note that while the default kernel is usually also the latest
11611164
# available, it is not always the case.
11621165
#
1163-
package="linux-image-${platform}"
1166+
if [[ "$platform" != generic ]] && [[ "$UBUNTU_DISTRIBUTION" == focal ]]; then
1167+
package="linux-image-${platform}"
1168+
else
1169+
package="linux-image-${platform}-hwe-24.04"
1170+
fi
11641171

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

0 commit comments

Comments
 (0)