d-i partman-auto/init_automatically_partition \
select Guided - use entire disk and set up LVM
d-i partman-auto/method string lvm
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto-lvm/new_vg_name string dom0
d-i partman-auto/expert_recipe string \
dom0 :: \
700 1500 2000 ext3 \
$primary{ } $bootable{ } \
$lvmignore{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ / } \
. \
10000 10000 10000 lvm \
method{ lvm } \
. \
1000 1500 2000 ext3 \
method{ format } format{ } \
$lvmok{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ /home } \
. \
500 750 1000 ext3 \
method{ format } format{ } \
$lvmok{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ /tmp } \
. \
1000 5000 7000 ext3 \
method{ format } format{ } \
$lvmok{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ /var } \
. \
1000 10000 1000000000 ext3 \
method{ keep } \
$lvmignore{ } \
. \
64 512 1024 linux-swap \
method{ swap } format{ } \
$lvmok{ } \
.
d-i partman-auto/choose_recipe select dom0
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition \
select Finish partitioning and write changes to disk
d-i partman/confirm boolean true
For the most part this is directly from the example. Installation goes all the way to loading the partitioner, which fails with:
"Failed to process the preconfiguration file
I'm at a loss, what am I doing wrong here? I'm trying to create one LVM partition, named "dom0", of 10G. And a smallish /, not in LVM. The rest of the disc will be used for the domU LVM VG, but I think I need to do that from a script.
Any help is appreciated. Google doesn't seem to know about any examples or howtos regarding autopartitioning with partman-auto-lvm :(
--
Gegroet,
Tim