[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1034208: Partman may reset user's choice for ESP partitions use



Package: partman-efi
Severity: minor

Boot method: USB stick
Image version: debian-bookworm-DI-rc1-amd64-netinst.iso

Dear maintainer,

as discussed in #debian-boot (you asked for it), I observed that partman resets the method set by the user on ESP partitions after setting LVM or RAID (and possibly encryption, I forgot to test).

Prerequisite: existing ESP partition(s).

Steps to reproduce:
- Select manual partitioning. All ESP partitions are set "use as: ESP" by default.
- Select an existing ESP partition and set it "do not use".
- Enter LVM or RAID setup.
- Leave LVM or RAID setup (no need to make any change).

Outcome: the EFI partition is set to "use as: ESP" again.

This is caused by /lib/partman/init.d/50efi rewriting "efi" to $id/ method when being re-run after leaving LVM/RAID setup.

Suggested fix: do not rewrite $id/method if /var/lib/partman/uefi_check_done exists, either by moving the check before the device loop (my preferred) or by adding a check before writing the method.

Use case: on multiboot systems I have multiple ESP partitions (possibly on multiple disks) and wish to force which one will be used for installation, so I need to disable the others.


Reply to: