gpt-auto: remove directory check for ESP mount
authorMichael Ferrari <nekkodroid404@gmail.com>
Tue, 15 Oct 2024 16:42:20 +0000 (18:42 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 16 Oct 2024 01:09:38 +0000 (10:09 +0900)
commit28dbee46d5bfdcfa601e80e248dbde22b8d65664
tree6c4c25a171960a7e3b70fd33c21e2d5cf6844d8a
parent548360817e6a08e73175225d2961ea4ba96e9e1a
gpt-auto: remove directory check for ESP mount

Ensure that we always attempt to mount the `ESP` partition to `/boot`
when there is no `XBOOTLDR` partition.

Fixes an issue when booting without a `XBOOTLDR` partition and an empty
root partition, since it would mount the `ESP` partition to `/efi/`
unconditionally causing boot entries to not be under `/boot/` as
recommended by the Boot Loader Specification.
src/gpt-auto-generator/gpt-auto-generator.c