Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Partitioning
- ## Partitioning example
- d-i partman-auto/disk string /dev/sda /dev/sdb
- d-i partman-auto/method string lvm
- #d-i partman-lvm/device_remove_lvm boolean true
- #d-i partman-md/device_remove_md boolean true
- d-i partman-lvm/confirm boolean true
- d-i partman-lvm/confirm_nooverwrite boolean true
- # For LVM partitioning, you can select how much of the volume group to use
- # for logical volumes.
- #d-i partman-auto-lvm/guided_size string 7G
- # You can choose one of the three predefined partitioning recipes:
- # - atomic: all files in one partition
- # - home: separate /home partition
- # - multi: separate /home, /var, and /tmp partitions
- d-i partman-auto/choose_recipe select boot_and_lvm
- d-i partman-auto-lvm/new_vg_name string vg00
- # Or provide a recipe of your own...
- # If you have a way to get a recipe file into the d-i environment, you can
- # just point at it.
- #d-i partman/early_command string pvcreate -ffy /dev/sdb; vgcreate -fy vg00 /dev/sdb
- d-i partman-auto/expert_recipe string \
- boot_and_lvm :: \
- 512 -1 -1 xfs $primary{ } $bootable{ } method{ format } format{ } device{ /dev/sda } use_filesystem{ } filesystem{ xfs } mountpoint{ /boot } .\
- 512 -1 -1 xfs $defaultignore{ } method{ lvm } device{ /dev/sdb } vg_name{ vg00 } .\
- 1024 1024 1024 linux-swap $lvmok{ } in_vg{ vg00 } lv_name{ swap } method{ swap } format{ } .\
- 4096 -1 -1 xfs $lvmok{ } in_vg{ vg00 } lv_name{ root } method{ format } format{ } use_filesystem{ } filesystem{ xfs } mountpoint{ / } .
- # This makes partman automatically partition without confirmation, provided
- # that you told it what to do using one of the methods above.
- 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
- # This makes partman automatically partition without confirmation.
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement