I want to automatically partition all of my workstations in the same way:
- First partition is a bootable 1GB ext4 /boot partition
- Second partition is a 2GB swap partition
- Third partition is an ext4 / partition that takes up whatever is left
- All partitions should be formatted
I think adding this to my preseed.cfg will accomplish what I want:
d-i partman-auto/workstation_recipe string \
root :: \
1024 1023 1024 ext4 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /boot } \
. \
2048 2047 2048 linux-swap \
$primary{ } \
method{ swap } format{ } \
. \
17408 100000000000 -1 ext4 \
$primary{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
.
This is based on this blog. Will this do what I want, and is there anything else I need to add to my preseed.cfg to make it accept these instructions without user intervention? I have never used partman recipes before.