Package: partman-efi
Version: 101
Tags: patch

Dear maintainers,

EFI partition management by partman-efi has some issues.

1) update.d/efi_sync_flag interferes with the "boot" flag management done by partman-base and partman-partitioning. But on GPT disk label parted_server makes the "boot" flag reflect the "esp" flag when getting flags and ignores the "boot" flag when setting flags, and on MSDOS disk label the "esp" and "boot" flags are independent.

2) update.d/efi_sync_flag does not remove the "esp" flag from an existing EFI partition when its method is set to another use.

3) Every time init.d/efi is run (e.g. after configuring LVM or RAID or committing changes), it changes the method to "efi" on any partition with the "esp" flag set. If the partition was set to "do not use", it is set to "use as EFI system partition" again. See bugs #034208 #1034812 #1041168.

In order to address these issues I suggest to change the logic:
- Remove interaction with the 'boot' flag management.
- Remove the 'esp' flag on existing and new EFI partitions when the method is set to another use. - Remove the 'esp' flag on new EFI partitions when the method is set to "do not use". - Preserve automatic recipe or user's choice to not use existing EFI partitions.

In order to preserve unused existing EFI partitions (which may be used by other OS): - Keep the 'esp' flag on existing EFI partitions when the method is set to "do not use". - Restore the 'esp' flag on former existing EFI partitions when the method is set to "do not use".
- Forget about former EFI partitions when committing changes.

Merge request: <https://salsa.debian.org/installer-team/partman-efi/-/merge_requests/7>

Reply via email to