Mount the ESP on /boot for UEFI images
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
- Steve Langasek: Approve
- Ubuntu Core Development Team: Pending requested
-
Diff: 243 lines (+72/-31)4 files modifieddebian/changelog (+6/-0)
live-build/functions (+13/-7)
live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary (+38/-24)
live-build/ubuntu-cpc/hooks.d/chroot/999-cpc-fixes.chroot (+15/-0)