Bug#1141839: installation-reports: preseed overwrites installer USB stick if no other drives are detected

Pascal Hambourg <[email protected]> Thu, 23 Jul 2026 19:49:08 +0200
Newsgroups gmane.linux.debian.devel.boot
Organization Plouf !
Message-ID <9cf2ef0a-d23c-47da-8fc7-d8fa5a0a5d7e__4550.00363742641$1784829085$gmane$org@plouf.fr.eu.org>
On 23/07/2026 at 16:05, Kevin Locke wrote:
> On Thu, 2026-07-23 at 08:38 +0200, Pascal Hambourg wrote:
>>
>> The netboot installer included in mini.iso images does not mount a
>> local installation media, it loads everything from a network mirror.
> 
> Thanks for mentioning that it's a netboot image.  So netboot media
> will still be affected after the fix is merged?

Yes.

> It would be nice to
> avoid inadvertently overwriting installation media for netboot too,
This is what the last part of my previous reply was about, as we already 
know how to deal with mounted media. But it is a headache. First we need 
to identify a netboot installation media. But then it is not trivial (if 
even possible) to tell if the netboot installer was booted from this 
media, the network or any other source.

>> Prompting only when there is no other disk would break the use case where
>> there is another disk and the user still wants to install on the disk
>> containing installation media. IMO it should not matter whether there are
>> other disks or not.
> 
> Good point.  Perhaps we could cover this case with a more general
> message?  Maybe something like:
> 
> "Installing to this disk will modify the installation media.
> <Continue> <Go Back>"
IIUC this needs to be inserted in every menu item and action which 
affect a disk. IMO it would be simpler to ask if the disk should be used 
for partitioning when starting partman and ignore it otherwise.