On 13/07/2026 at 23:01, Holger Wansing wrote:
Am 13. Juli 2026 20:14:11 MESZ schrieb Pascal Hambourg <[email protected]>:

For all partitioning modes:
- if the entire disk is mounted -> skip the disk
- if a partition is mounted and unseen by parted -> skip the disk
"Skip" means that the disk will not be visible nor usable for partitioning.

For manual partitioning:
- lock the mounted partition
"Lock" means that the partition is visible but altering or deleting it or 
creating a new partition table on its disk is prohibited. This is an existing feature 
designed to protect RAID members and physical volumes for LVM and encryption, but AFAICS 
the lock is checked only in manual partitioning.

I updated the merge request [1] to implement the above. It should address this bug report when using official images written to an entire USB drive.

For automatic partitioning using an entire disk:
- skip the disk with a mounted partition
"Skip" means that the disk is not added to the available disk list.

This will require extra changes in partman-auto, and maybe partman-auto-*.

Sounds really smart to me.
You and Kevin deserve credit for challenging me about "the best we can do" and giving me new ideas.

If you have time to adapt the MR like this, and we get a mini.iso out of this, 
Kevin could test it directly, since he has all the bits ready for such test :-)

I have only done very basic tests in a VM, so more testing is welcome.
mini.iso is available in salsa's pipeline [2].

[1] <https://salsa.debian.org/installer-team/partman-base/-/merge_requests/8> [2] <https://salsa.debian.org/pham/partman-base/-/jobs/9958958/artifacts/browse/debian/output/>

Reply via email to