Skip to content

Instantly share code, notes, and snippets.

@kitchen
Created February 12, 2014 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kitchen/ba72af4a48b94fb0f463 to your computer and use it in GitHub Desktop.
Save kitchen/ba72af4a48b94fb0f463 to your computer and use it in GitHub Desktop.
partition table - preseed
d-i partman-auto/disk string /dev/sda /dev/vda
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
d-i partman-auto/method string lvm
d-i partman-auto/init_automatically_partition select Guided - use entire disk
d-i partman-auto/choose_recipe select alltheroot
d-i partman-auto/expert_recipe string alltheroot :: \
700 500000 100000000000 ext4 \
$primary{ } \
$bootable{ } \
$lvmok{ } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ / } \
. \
512 512 1024 linux-swap \
$lvmok{ } \
method{ swap } \
format{ } \
.
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
d-i partman/confirm_nooverwrite boolean true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment