Mount the ESP on /boot for UEFI images

Bug #1997001 reported by Gauthier Jolly
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-images
New
Undecided
Unassigned
livecd-rootfs (Ubuntu)
New
Undecided
Unassigned

Bug Description

At the moment, on cloud-images:
 * the kernel and initramfs are stored in /boot with is part of the rootfs
 * shim and the first stage of Grub are stored on the ESP mounted on /boot/efi

This is an issue if the user tries to encrypt the rootfs of a cloud-image. In that case the kernel and initramfs need to be stored on an un-encrypted partition.

In theory, the user could use the ESP to store those assets. However, the current ESP is too small (106MiB) to store multiple kernels and initramfs. Moreover, to ensure compatibility with the kernel post-install script and grub, the ESP would have to be mounted on /boot and /boot/efi (where grub expects it).

To solve those issues, we should:
 * make the ESP bigger (1GiB)
 * mount the ESP on /boot by default
 * bind-mount /boot on /boot/efi for grub

Related branches

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.