Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #LVM test partman
- # https://blog.kumina.nl/2011/08/preseeding-a-debian-squeeze-install-putting-all-volumes-in-lvm/
- d-i partman-auto/method string lvm
- d-i partman-auto/choose_recipe select jumpstartlvm
- d-i partman-lvm/device_remove_lvm boolean true
- d-i partman-md/device_remove_md boolean true
- #d-i partman-auto-lvm/no_boot boolean true
- d-i partman-auto/disk string /dev/sda /dev/hda
- d-i partman-auto-lvm/new_vg_name string myvg
- # Default partition schema.
- # http://coewww.rutgers.edu/www1/linuxclass2010/lessons/lesson2/partman-auto-recipe.txt
- # http://forums.debian.net/viewtopic.php?f=17&t=76999
- d-i partman-auto/expert_recipe string \
- jumpstartlvm :: \
- 524 524 600 ext3 \
- $primary{ } $bootable{ } \
- method{ format } format{ } \
- device{ /dev/sda } \
- use_filesystem{ } filesystem{ ext3 } \
- mountpoint{ /boot } \
- . \
- 2048 99000 -1 ext3 \
- $primary{ } \
- method{ format } format{ } \
- device{ /dev/sda } \
- filesystem{ ext3 } use_filesystem{ } \
- mountpoint{ /novatmp } \
- . \
- 5000 90000 100000 ext4 \
- $defaultignore{ } \
- method{ lvm } device{ /dev/sda } \
- vg_name{ myvg } \
- . \
- 10000 10000 -1 ext4 \
- $lvmok{ } in_vg{ myvg } \
- lv_name{ slash } method{ format } \
- format{ } use_filesystem{ } \
- filesystem{ ext4 } mountpoint{ / } \
- . \
- 4000 4000 4000 linux-swap \
- $lvmok{ } in_vg{ myvg } \
- lv_name{ swap } \
- method{ swap } format{ } \
- .
- d-i partman-lvm/confirm_nooverwrite boolean true
- d-i partman-lvm/confirm boolean true
- d-i preseed/late_command string \
- in-target chsh -s /bin/bash ; \
- in-target umount /novatmp ; \
- in-target sed -i "s/^.*novatmp.*$//" /etc/fstab ;\
- in-target pvcreate /dev/sda2 ;\
- in-target vgcreate nova-volumes /dev/sda2 ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement