On 10/07/2026 at 21:58, Kevin Locke wrote:
When the Debian Installer Netinst ISO is booted from a USB stick and
preseeded for partman to automatically partition without confirmation,
if no disks are present or detected (e.g. due to Intel RST, see Bug
1035101, or hardware issues) partman will overwrite the installer USB
stick, rendering it unbootable.
(...)
I contend that partman should have a sanity check to avoid overwriting
the installation media, so that a more useful error message can be
presented to users indicating the lack of usable drives.
I had opened a merge request against partman-base [1] to skip a drive if
mounted on /cdrom or /hd-media, but put it on hold after considering
that it might break some (admittedly edge) use cases. Maybe that check
should apply only to automatic partitioning ?
[1]
<https://salsa.debian.org/installer-team/partman-base/-/merge_requests/8>