Hi,
I'm trying to set up the installer preseed file to automatically partition the hard disk.
The problem is, the installer doesn't seem to recognize my expert recipe. Instead, it will automatically partition the hard drive and allocate the full size of RAM for swap.
This is my recipe. If anyone can see what the problem is, I would really appreciate it.
Code:
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string lvm
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/device_remove_lvm_span boolean true
d-i partman-auto/purge_lvm_from_device boolean true
#d-i partman-auto-lvm/guided_size string max
#d-i partman-md/device_remove_md boolean true
d-i partman-auto-lvm/new_vg_name string vg0
#d-i partman/alignment select cylinder
d-i partman-auto/choose_recipe select boot-root
d-i partman-auto/expert_recipe string \
boot-root :: \
256 8000 256 ext2 \
$primary{ } \
$bootable{ } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext2 } \
mountpoint{ /boot } . \
3000 7000 1000000000 ext4 \
$primary{ } \
$defaultignore{ } \
method{ lvm } \
device{ /dev/sda } \
vg_name{ vg0 } . \
30000 5000 1000000000 ext4 \
$lvmok{ } \
in_vg{ vg0 } \
lv_name{ root } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ / } . \
256 1024 512 swap \
$lvmok{ } \
in_vg{ vg0 } \
lv_name{ swap } \
method{ swap } \
format{ } . \
d-i partman/default_filesystem string ext4
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman-md/confirm boolean true
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-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true