On 25/02/2025 at 14:40, Ralf Bergs wrote:

I wanted to repartition (delete all existing partitions) my drive in
d-i in "rescue mode".

Unfortunately, d-i insisted that a root FS exists.

It would be helpful if this warning could be skipped, confirming "I
want to do it anyway".

Rescue mode is not intended for using partman, d-i's partitioning interface. Instead it displays a screen where you can select which partition to mount and fix.

If you just need to do simple partitioning such as deleting existing partitions, you can start a shell and use fdisk or parted.

In partman, "finish partitioning and write changes to disk" does not only create and format partitions (commit.d): it also checks if the setup is valid (check.d), mounts filesystems on selected mount points and writes some files such as /etc/fstab (finish.d). So check.d and finish.d would need to be skipped in rescue mode.

However a trick is to enter "Configure software RAID" (or LVM or encrypted volumes) instead; this will prompt to write pending changes on disk.

Reply via email to