Comment 5 for bug 1907280

Revision history for this message
Ryan Harper (raharper) wrote : Re: [Bug 1907280] Re: grub-install: error: /var/lib/grub/esp doesn't look like an EFI partition.

On Tue, Dec 8, 2020 at 11:00 AM Dimitri John Ledkov <
<email address hidden>> wrote:

> flag: boot
> id: sda-part2
>
> why does sda-part2 has bootable flag?
>
> For some reason we try to install resilient boot configuration with two
> ESPs sda-part1 & sda-part2, whilst the second one is not at all an ESP.
>

For legacy reasons (curtin also looks at flag: boot partitions. We can add
additional checks to see if the partition with the flag: boot on it has a
format entry with fat32;
We're not checking that; so sda2 with flag: boot was selected as a
secondary ESP; but
it turned out to not be.

See curtin/commands/curthooks.py:uefi_find_grub_device_ids

Shouldn't be too much effort to scan the storage config of the
esp_partitions
and confirm they have the correct vFAT filesystem set. Otherwise we can
ignore them.

> --
> You received this bug notification because you are subscribed to curtin.
> Matching subscriptions: curtin-bugs-all, subiquity-bugs
> https://bugs.launchpad.net/bugs/1907280
>
> Title:
> grub-install: error: /var/lib/grub/esp doesn't look like an EFI
> partition.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/curtin/+bug/1907280/+subscriptions
>