Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemd: stop building gpt-auto-generator to avoid remounting /boot
During boot prairiedog figures out which partition bank is in use and mounts the correct boot partition containing the kernel binary and configuration at /boot. When an x86 system booted via BIOS/CSM, it was observed that at some point after boot the EFI System Partition would be mounted at /boot instead. The cause for the unexpected remount is systemd-gpt-auto-generator, a generator running during systemd start that creates mount and automount units for well-known partition GUIDs. This undoes the work previously performed by prairiedog. Convincing gpt-auto-generator to do right by Bottlerocket would involve changing partition GUIDs and implementing logic for the GPT priority fields. Alternatively, gpt-auto-generator can be disabled at boot via the `systemd.gpt_auto=0` kernel command line option, leaving the work of mounting partitions to prairiedog and other already existing mount units. Since we would disable the gpt-auto-generator via the kernel command line for all variants, we might as well stop building and shipping it. Add a local patch to allow selecting/deselecting gpt-auto-generator at build-time and actually deselect it. Signed-off-by: Markus Boehme <[email protected]>
- Loading branch information