Partman-auto recognizing free space properly

Jurjen Bokma

October 2009

This appears in the d-i of Ubuntu Jaunty when preseeding with:

### Partitioning
# If the system has free space you can choose to only partition that space.
# Alternatives: custom, some_device, some_device_crypto, some_device_lvm.
d-i partman-auto/init_automatically_partition select biggest_free

# Alternatively, you can specify a disk to partition. The device name must
# be given in traditional non-devfs format.
# Note: A disk must be specified, unless the system has only one disk.
# For example, to use the first SCSI/SATA hard disk:
#d-i partman-auto/disk string /dev/sda
# In addition, you'll need to specify the method to use.
# The presently available methods are: "regular", "lvm" and "crypto"
#d-i partman-auto/method string regular 1


If we so much as uncomment this line, then it is implied that the above setting of biggest_free is moot (US meaning) and we want to use the entire disk. If there is only one disk in the system, it will be overwritten without warning.