Advertisement
Guest User

Untitled

a guest
Jan 27th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. ### Partitioning
  2. ## Partitioning example
  3. d-i partman-auto/disk string /dev/sda /dev/sdb
  4. d-i partman-auto/method string lvm
  5.  
  6. #d-i partman-lvm/device_remove_lvm boolean true
  7. #d-i partman-md/device_remove_md boolean true
  8. d-i partman-lvm/confirm boolean true
  9. d-i partman-lvm/confirm_nooverwrite boolean true
  10.  
  11. # For LVM partitioning, you can select how much of the volume group to use
  12. # for logical volumes.
  13. #d-i partman-auto-lvm/guided_size string 7G
  14.  
  15. # You can choose one of the three predefined partitioning recipes:
  16. # - atomic: all files in one partition
  17. # - home: separate /home partition
  18. # - multi: separate /home, /var, and /tmp partitions
  19. d-i partman-auto/choose_recipe select boot_and_lvm
  20. d-i partman-auto-lvm/new_vg_name string vg00
  21.  
  22. # Or provide a recipe of your own...
  23. # If you have a way to get a recipe file into the d-i environment, you can
  24. # just point at it.
  25. #d-i partman/early_command string pvcreate -ffy /dev/sdb; vgcreate -fy vg00 /dev/sdb
  26.  
  27. d-i partman-auto/expert_recipe string \
  28. boot_and_lvm :: \
  29. 512 -1 -1 xfs $primary{ } $bootable{ } method{ format } format{ } device{ /dev/sda } use_filesystem{ } filesystem{ xfs } mountpoint{ /boot } .\
  30. 512 -1 -1 xfs $defaultignore{ } method{ lvm } device{ /dev/sdb } vg_name{ vg00 } .\
  31. 1024 1024 1024 linux-swap $lvmok{ } in_vg{ vg00 } lv_name{ swap } method{ swap } format{ } .\
  32. 4096 -1 -1 xfs $lvmok{ } in_vg{ vg00 } lv_name{ root } method{ format } format{ } use_filesystem{ } filesystem{ xfs } mountpoint{ / } .
  33.  
  34.  
  35. # This makes partman automatically partition without confirmation, provided
  36. # that you told it what to do using one of the methods above.
  37. d-i partman-partitioning/confirm_write_new_label boolean true
  38. d-i partman/choose_partition select finish
  39. d-i partman/confirm boolean true
  40. d-i partman/confirm_nooverwrite boolean true
  41.  
  42. # This makes partman automatically partition without confirmation.
  43. d-i partman-md/confirm boolean true
  44. d-i partman-partitioning/confirm_write_new_label boolean true
  45. d-i partman/choose_partition select finish
  46. d-i partman/confirm boolean true
  47. d-i partman/confirm_nooverwrite boolean true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement