I'm trying to do an install of Debian with the preseed tool. Everything's working great so far, except for the partitions of my disk. Basically what I want is:
/ of 30GB - ext4
/var/lib about 2TB - xfs
swap 2GB
But the system at the end comes like this:
/ 2TB - ext4
swap, about 20GB
Here's the part for the disks of the preseed file:
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
# GPT
d-i partman-basicfilesystems/choose_label string gpt
d-i partman-basicfilesystems/default_label string gpt
d-i partman-partitioning/choose_label string gpt
d-i partman-partitioning/default_label string gpt
d-i partman/choose_label string gpt
d-i partman/default_label string gpt
d-i partman-auto/expert-recipe string sql:: \
32 32 32 free \
$gptonly{ } \
$primary{ } \
$bios_boot{ } \
method{ biosgrub } \
. \
30000 32000 30720 ext4 \
$gptonly \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
. \
2048 4000 2048 linux-swap \
$gptonly \
method{ swap } format{ } \
. \
2000000 1000 -1 xfs \
$gptonly \
method{ format } format{ } \
use_filesystem{ } filesystem{ xfs } \
mountpoint{ /var/lib/ } \
options/noatime{ noatime } \
options/nodiratime{ nodiratime } \
options/nobarrier{ nobarrier } \
. \
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman-partitioning/confirm_copy boolean true
d-i partman/confirm_nooverwrite boolean true
## Controlling how partitions are mounted
d-i partman/mount_style select traditionnal
Is there something I'm doing wrong?