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() {
277
277
local tag_prefix_flavour
278
278
case " ${platform} " in
279
279
generic)
280
- tag_prefix_flavour=" Ubuntu"
280
+ tag_prefix_flavour=" Ubuntu-hwe "
281
281
;;
282
282
aws | azure | gcp | oracle)
283
283
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() {
1157
1157
# for kernel version '4.15.0-1027-aws'. We use this dependency to figure
1158
1158
# out the default kernel version for a given platform.
1159
1159
#
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
+ #
1160
1163
# Note that while the default kernel is usually also the latest
1161
1164
# available, it is not always the case.
1162
1165
#
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
1164
1171
1165
1172
if [[ " $( apt-cache show --no-all-versions " $package " \
1166
1173
2> /dev/null | grep Depends) " =~ linux-image-([^,]* -${platform} ) ]]; then
You can’t perform that action at this time.
0 commit comments