File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff 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} "
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments