-
-
Save rjhornsby/35ac913f30fa09e12ea1a303fa1c4bb4 to your computer and use it in GitHub Desktop.
debian preseed partman-auto snippet
This file contains 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-auto/method string lvm | |
d-i partman-auto-lvm/guided_size string max | |
d-i partman-auto/expert_recipe string | |
boot-lvm-root :: \ | |
1 1 1 free \ | |
$iflabel{ gpt } \ | |
$reusemethod{ } \ | |
method{ efi } \ | |
format{ } \ | |
. \ | |
1024 1025 1024 ext2 \ | |
$primary{ } $bootable{ } \ | |
method{ format } \ | |
format{ } \ | |
use_filesystem{ } \ | |
filesystem{ ext2 } \ | |
mountpoint{ /boot } \ | |
. \ | |
1024 1024 200% linux-swap \ | |
$lvmok{ } \ | |
lv_name{ swap } \ | |
method{ swap } \ | |
format{ } \ | |
. \ | |
2048 2048 8192 xfs \ | |
$lvmok{ } \ | |
lv_name { var } \ | |
method{ lvm } \ | |
format{ } \ | |
use_filesystem{ } \ | |
filesystem{ xfs } \ | |
mountpoint{ /var } \ | |
. \ | |
2048 2048 4096 xfs \ | |
$lvmok{ } \ | |
lv_name { tmp } \ | |
method{ lvm } \ | |
format{ } \ | |
use_filesystem{ } \ | |
filesystem{ xfs } \ | |
mountpoint{ /tmp } \ | |
. \ | |
4096 8192 -1 xfs \ | |
$lvmok{ } \ | |
lv_name{ root } \ | |
method{ lvm } \ | |
format{ } \ | |
use_filesystem{ } \ | |
filesystem{ xfs } \ | |
mountpoint{ / } \ | |
. \ | |
d-i partman-lvm/confirm boolean true | |
d-i partman-lvm/confirm_nooverwrite boolean true | |
# This makes partman automatically partition without confirmation. | |
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 file contains 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
vagrant@debian:~$ lsblk | |
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS | |
sda 8:0 0 20G 0 disk | |
├─sda1 8:1 0 487M 0 part /boot | |
├─sda2 8:2 0 1K 0 part | |
└─sda5 8:5 0 19.5G 0 part | |
├─debian--vg-root 254:0 0 18.6G 0 lvm / | |
└─debian--vg-swap_1 254:1 0 980M 0 lvm [SWAP] | |
sr0 11:0 1 1024M 0 rom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment