Comment 3 for bug 2033115

Revision history for this message
Steve Langasek (vorlon) wrote :

We currently install the linux kernel in the standard.live layer. It looks to me like KERNEL_FLAVOURS='generic-hwe-22.04' in canary, rather than an explicit add_package, should DTRT here.

> 2) We should add a file called /etc/subiquity/kernel-meta-package containing
> the name of the kernel metapackage to use to the live layer.

It doesn't appear we currently do this in any other images. I'm assuming this is necessary because unlike the current daily-live image, the canary image installs the kernel in the live layer and not in the standard layer and therefore it's not part of the rootfs that we copy from.

However, in terms of the installer flow I wonder if it wouldn't be better to put the kernel in the standard layer, being the layer that is used as the installation source, and to then have the standard.enhanced-secureboot layer remove the kernel deb? This should save us from having to do an explicit apt install of the kernel as part of the installation, saving on install time for the classic case.