Hi ,
I am trying to build a Packer based Ubuntu template with custom partitioning scheme as below:
primary partition 1 /boot
Parimary partition 2 swap
Primary partition 3 extended
Extended partition 1 /
I have come up with the below lines in the partitioning section of the preseed.cfg file:
### Partitioning
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman/default_filesystem string ext4
d-i partman-auto/expert_recipe string \
boot-root :: \
40 50 100 ext4 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /boot } \
. \
64 512 300% linux-swap \
method{ swap } format{ } \
. \
500 10000 1000000000 ext4 \
$primary{ } $extended{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
.
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/confirm_write_new_label boolean true
but the above one is not correct as it is not able to create a root partition.
need help.