Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17761

Partitioning using Debian preseed.

$
0
0

'm trying to make a Debian preseed disk partition recipe involving an encrypted logical volume. The goal is a 40MB /boot partition, a 1100MB / volume, and the balance of the disk on an encrypted volume for /var. I've had tried this but the install drops me to manual partitioning.

Code:

# How to partition, lvm and encrypt? # Search the web for partman-auto-recipe.txt d-i partman-auto/disk string /dev/vda d-i partman-auto/method string lvm d-i partman-auto-lvm/vg00 string system d-i partman-auto/expert_recipe string \ boot-root :: \ 40 10 80 ext3 \ $primary{ } \ $bootable{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext3 } \ mountpoint{ /boot } \ . \ 1100 20 10000000 ext3 \ $defaultignore{ } \ $primary{ } \ method{ lvm } \ vg_name{ vg00 } \ . \ 1100 30 1200 ext3 \ $lvmok{ } \ in_vg{ vg00 } \ lv_name{ root } \ method{ format } \ format{ ext3 } \ mountpoint{ / } \ . \ 1200 40 10000000 ext3 \ $lvmok{ } \ in_vg{ vg00 } \ lv_name{ root } \ method{ format } \ format{ ext3 } \ . d-i partman-lvm/confirm boolean true d-i partman/confirm_write_new_label boolean true 
submitted by neilhwatson
[link] [3 comments]

Viewing all articles
Browse latest Browse all 17761

Trending Articles