Advertisement
Guest User

Untitled

a guest
Sep 13th, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. #LVM test partman
  2. # https://blog.kumina.nl/2011/08/preseeding-a-debian-squeeze-install-putting-all-volumes-in-lvm/
  3. d-i partman-auto/method string lvm
  4. d-i partman-auto/choose_recipe select jumpstartlvm
  5. d-i partman-lvm/device_remove_lvm boolean true
  6. d-i partman-md/device_remove_md boolean true
  7. #d-i partman-auto-lvm/no_boot boolean true
  8. d-i partman-auto/disk string /dev/sda /dev/hda
  9. d-i partman-auto-lvm/new_vg_name string myvg
  10. # Default partition schema.
  11. # http://coewww.rutgers.edu/www1/linuxclass2010/lessons/lesson2/partman-auto-recipe.txt
  12. # http://forums.debian.net/viewtopic.php?f=17&t=76999
  13. d-i partman-auto/expert_recipe string \
  14. jumpstartlvm :: \
  15. 524 524 600 ext3 \
  16. $primary{ } $bootable{ } \
  17. method{ format } format{ } \
  18. device{ /dev/sda } \
  19. use_filesystem{ } filesystem{ ext3 } \
  20. mountpoint{ /boot } \
  21. . \
  22. 2048 99000 -1 ext3 \
  23. $primary{ } \
  24. method{ format } format{ } \
  25. device{ /dev/sda } \
  26. filesystem{ ext3 } use_filesystem{ } \
  27. mountpoint{ /novatmp } \
  28. . \
  29. 5000 90000 100000 ext4 \
  30. $defaultignore{ } \
  31. method{ lvm } device{ /dev/sda } \
  32. vg_name{ myvg } \
  33. . \
  34. 10000 10000 -1 ext4 \
  35. $lvmok{ } in_vg{ myvg } \
  36. lv_name{ slash } method{ format } \
  37. format{ } use_filesystem{ } \
  38. filesystem{ ext4 } mountpoint{ / } \
  39. . \
  40. 4000 4000 4000 linux-swap \
  41. $lvmok{ } in_vg{ myvg } \
  42. lv_name{ swap } \
  43. method{ swap } format{ } \
  44. .
  45.  
  46. d-i partman-lvm/confirm_nooverwrite boolean true
  47. d-i partman-lvm/confirm boolean true
  48.  
  49. d-i preseed/late_command string \
  50. in-target chsh -s /bin/bash ; \
  51. in-target umount /novatmp ; \
  52. in-target sed -i "s/^.*novatmp.*$//" /etc/fstab ;\
  53. in-target pvcreate /dev/sda2 ;\
  54. in-target vgcreate nova-volumes /dev/sda2 ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement