Created
September 20, 2015 13:25
-
-
Save but3k4/a6081bd7259da5611579 to your computer and use it in GitHub Desktop.
Debian Wheezy Preseed Snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Partitioning | |
| # | |
| d-i partman/early_command \ | |
| string debconf-set partman-auto/disk "\$(list-devices disk | head -n1)" | |
| d-i partman-auto/method string lvm | |
| d-i partman-lvm/device_remove_lvm boolean true | |
| d-i partman-lvm/device_remove_lvm_span boolean true | |
| d-i partman-auto/purge_lvm_from_device boolean true | |
| d-i partman-auto-lvm/new_vg_name string VolGroup00 | |
| # Partitioning schema: | |
| # /dev/mapper/VolGroup00/lv_swap - 8Gb - swap | |
| # /dev/mapper/VolGroup00/lv_root - 15Gb - /root | |
| # /dev/mapper/VolGroup00/lv_tmp - 4Gb - /tmp | |
| # /dev/mapper/VolGroup00/lv_var - 15Gb - /var | |
| # /dev/mapper/VolGroup00/lv_delete_me - you need to create | |
| # this volume because the debian preseed uses the all free | |
| # space in the last lv. I decided to create it because you | |
| # can delete it and use it to resize another lv. | |
| d-i partman-auto/expert_recipe string \ | |
| root :: \ | |
| 8192 8192 8192 linux-swap \ | |
| $defaultignore{ } \ | |
| $lvmok{ } \ | |
| lv_name{ lv_swap } \ | |
| method{ swap } \ | |
| format{ } \ | |
| . \ | |
| 15360 15360 15360 ext4 \ | |
| $defaultignore{ } \ | |
| $lvmok{ } \ | |
| lv_name{ lv_root } \ | |
| method{ format } \ | |
| format{ } \ | |
| use_filesystem{ } \ | |
| filesystem{ ext4 } \ | |
| mountpoint{ / } \ | |
| . \ | |
| 4096 4096 4096 ext4 \ | |
| $defaultignore{ } \ | |
| $lvmok{ } \ | |
| lv_name{ lv_tmp } \ | |
| method{ format } \ | |
| format{ } \ | |
| use_filesystem{ } \ | |
| filesystem{ ext4 } \ | |
| mountpoint{ /tmp } \ | |
| . \ | |
| 15360 15360 15360 ext4 \ | |
| $defaultignore{ } \ | |
| $lvmok{ } \ | |
| lv_name{ lv_var } \ | |
| method{ format } \ | |
| format{ } \ | |
| use_filesystem{ } \ | |
| filesystem{ ext4 } \ | |
| mountpoint{ /var } \ | |
| . \ | |
| 1024 1024 1024 ext4 \ | |
| $defaultignore{ } \ | |
| $lvmok{ } \ | |
| lv_name{ lv_delete_me } \ | |
| method{ format } \ | |
| format{ } \ | |
| use_filesystem{ } \ | |
| filesystem{ ext4 } \ | |
| mountpoint{ /delete_me } \ | |
| . | |
| d-i partman-auto-lvm/no_boot boolean true | |
| d-i partman-lvm/confirm boolean true | |
| d-i partman/confirm_write_new_label boolean true | |
| d-i partman/choose_partition select Finish partitioning and write changes to disk | |
| d-i partman/confirm boolean true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment