I have to manage some dual-boot setups and to make sure that existing
NTFS partitions are kept and only non-NTFS partitions are deleted.
I've tried to achieve this, by adding the following early_command and
partman settings.
d-i partman/early_command string for i in 1 2 3 4 5 6 7 8; \
do if [ "`fdisk -l /dev/sda | grep /dev/sda$i | grep -v "HPFS/NTFS"`"
]; \
then echo -e "d\n$i\nw\n" | fdisk /dev/sda ; fi ; done; exit 0;
d-i partman-auto/init_automatically_partition select biggest_free
d-i partman-auto/choose_recipe select atomic
The non-ntfs partitions where deleted correctly, but sadly the
installer
throws an error afterwards: Unable to satisfy all constraints on the
partition.
I have re-checked and the error also occurs, when I leave the
early-command out and manually delete all but the NTFS partition on
forehand.