I have hacked in a solution to this for my implementation using preseeding. My kickstart file now contains the following.
# Selecting proper disk preseed partman-auto/disk string /dev/vda # Removing LVM partitions preseed partman-lvm/device_remove_lvm boolean true # Picking LVM preseed partman-auto/method string lvm # Confirm LVM selection preseed partman-lvm/confirm boolean true # Finish up preseed partman/confirm_write_new_label boolean true preseed partman/choose_partition select finish preseed partman/confirm boolean true
# To get my custom layout I have to circumvent kickseed so I have added.
%pre echo 'd-i partman-auto/expert_recipe string boot-root :: 512 1024 768 ext4 $primary{ } $bootable{ } method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ /boot } . 15360 18432 20480 ext4 $lvmok{ } method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ / } . 5120 5632 6144 ext4 $lvmok{ } method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ /var } . 1024 2048 4096 linux-swap $lvmok{ } method{ swap } format{ } . 1024 2048 3072 ext4 $lvmok{ } method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ /tmp } . 300 400 -1 ext4 $lvmok{ } method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ /disk/trump } .' >> /var/spool/kickseed/parse/preseed.cfg
I have hacked in a solution to this for my implementation using preseeding. My kickstart file now contains the following.
# Selecting proper disk lvm/device_ remove_ lvm boolean true confirm_ write_new_ label boolean true choose_ partition select finish
preseed partman-auto/disk string /dev/vda
# Removing LVM partitions
preseed partman-
# Picking LVM
preseed partman-auto/method string lvm
# Confirm LVM selection
preseed partman-lvm/confirm boolean true
# Finish up
preseed partman/
preseed partman/
preseed partman/confirm boolean true
# To get my custom layout I have to circumvent kickseed so I have added.
%pre auto/expert_ recipe string boot-root :: 512 1024 768 ext4 $primary{ } $bootable{ } method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ /boot } . 15360 18432 20480 ext4 $lvmok{ } method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ / } . 5120 5632 6144 ext4 $lvmok{ } method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ /var } . 1024 2048 4096 linux-swap $lvmok{ } method{ swap } format{ } . 1024 2048 3072 ext4 $lvmok{ } method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ /tmp } . 300 400 -1 ext4 $lvmok{ } method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ /disk/trump } .' >> /var/spool/ kickseed/ parse/preseed. cfg
echo 'd-i partman-