Preseed Debian Raid Howto

Using preseed (Debian / Ubuntu) to partition both RAID and encryption

I am trying to configure a preseed image using RAID + encryption. I originally wanted to do this without LVM, however it does not seem (at least with encryption) that this is possible. I simply want to know if this is even possible via preseed - that is, to have both RAID other encryption partitioned. All the documentation I'm seeing states (from what I can tell) that you can only have either RAID or encryption. I'm not seeing any way to preseed both.

FWIW, here is what I've used for LVM + encryption:

### Disk Configuration di partman-auto / disk string / dev / sda / dev / sdb / dev / sdc / dev / sdd / dev / sde / dev / sdf di partman-auto / method string crypto di partman-lvm / device_remove_lvm boolean true di partman-lvm / confirm boolean true di partman-auto-lvm / guided_size string max di partman-auto-lvm / new_vg_name string crypt di partman-auto / disk string / dev / sda / dev / sdb / dev / sdc / dev / sdd / dev / sde / dev / sdf di partman-auto / choose_recipe select root-encrypted di partman-auto / expert_recipe string \ root-encrypted :: \ 1000 1000 1000 ext3 \ $ primary {} $ bootable {} \ method {format} format {} \ use_filesystem {} filesystem {ext4} \ mountpoint {/ boot} \. \ 500 10000 1000000000 ext4 \ $ lvmok {} lv_name {root} \ in_vg {crypt} \ $ primary {} \ method {format} format {} \ use_filesystem {} filesystem {ext4} \ mountpoint {/} \. d-i partman-md / device_remove_md boolean true d-i partman-basicfilesystems / no_mount_point boolean false 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 boolean true

And this is what I've tested that works for LVM + RAID:

### Disk Configuration di partman-auto / disk string / dev / sda / dev / sdb / dev / sdc / dev / sdd / dev / sde / dev / sdf di partman-auto / method string raid di partman-lvm / device_remove_lvm boolean true di partman-md / device_remove_md boolean true di partman-lvm / confirm boolean true di partman-auto / choose_recipe select boot-root di partman-auto-lvm / new_vg_name string cryptroot di partman-auto / expert_recipe string \ boot-root: : \ 1024 30 1024 raid \ $ lvmignore {} \ $ primary {} method {raid} \. \ 10000 35 20000 raid \ $ lvmignore {} \ $ primary {} method {raid} \. \ 10000 35 20000 ext4 \ $ defaultignore {} \ $ lvmok {} \ lv_name {root} \ method {format} \ format {} \ use_filesystem {} \ filesystem {ext4} \ mountpoint {/} \. di partman-auto-raid / recipe string \ 10 6 0 ext4 / boot \ / dev / sda1 # / dev / sdb1 # / dev / sdc1 # / dev / sdd1 # / dev / sde1 # / dev / sdf1 \ --layout # n6 \. \ 10 6 0 lvm - \ / dev / sda2 # / dev / sdb2 # / dev / sdc2 # / dev / sdd2 # / dev / sde2 # / dev / sdf2 \ --layout # n6 \. di mdadm / boot_degraded boolean false di partman-md / confirm boolean true di partman-partitioning / confirm_write_new_label boolean true di partman-basicfilesystems / no_swap boolean false di partman / choose_partition select Finish partitioning and write changes to disk di partman / confirm boolean true di partman -md / confirm_nooverwrite boolean true di partman / confirm_nooverwrite boolean true

I suppose, I'm trying to meld the two, and I've tried a few different combinations but not have worked out. Essentially, I believe you can have only either or but not both. Can anyone confirm or deny this for me? Thanks in advance.