autoinstall hwe kernel option fails for interim releases
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
Triaged
|
Medium
|
Unassigned |
Bug Description
When building an autoinstall config for interim Ubuntu releases (i.e. 23.04 lunar lobster), the hwe kernel flavor option causes the installer to fail when installing the kernel.
This seems to be because the installer tries to pulls the OS version number and append it to the package name for installation.
How to reproduce:
Create an autoinstall yaml which contains the following parameters
kernel:
flavor: hwe
Try to install an interim release with the given autoinstall
Expected result
The installer should select the appropriate kernel metapackage
What actually happens
The installer appends the OS version number to 'linux-
For Ubuntu 23.04 Lunar Lobster, this would result in the package name 'linux-
description: | updated |
Thanks for the bug report James.
You are right, we currently append the version number that we read from /etc/lsb-release. This is obviously the wrong way to determine the latest installable version.
We could lean on `distro-info --lts --release` but this will also produce wrong results in versions before jammy.
We might have to resort on `apt-cache search` or a similar command, unless there is a way to query the latest available hwe kernel version.