I try to preseed the partitioning on my virtual machines, I want to place swap on a separate disk (/dev/sdb). Everything else should be on first disk (/dev/sda). Somehow it will still put everything on the first disk. Does anyone know why this is? I know there is a way to solve this by running a late command, but somehow it should work in partman or am I wrong?
I have no clue where I do the mistake.
### Partitioning
d-i partman-auto/method string regular
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-auto/disk string /dev/sda /dev/sdb
d-i partman-auto/expert_recipe string \
boot-root :: \
40 4096 -1 ext4 \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
device{ /dev/sda } \
. \
1 1 -1 linux-swap \
method{ swap } format{ } \
device{ /dev/sdb } \
.
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-md/confirm boolean true
Kind regards & thx for any help