Skip to content

Instantly share code, notes, and snippets.

@vikassaini01
Last active May 14, 2021 05:22
Show Gist options
  • Save vikassaini01/7c0e73bcd52ae6c69141910b3d0f08c1 to your computer and use it in GitHub Desktop.
Save vikassaini01/7c0e73bcd52ae6c69141910b3d0f08c1 to your computer and use it in GitHub Desktop.
4x HDD LV Combined Ubuntu preseed
d-i partman-auto/method string lvm
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
# partitioning
d-i partman-auto/expert_recipe string \
boot-root :: \
1 1 1 free \
method{ biosgrub } \
device{ /dev/sda } \
. \
2048 2048 2048 ext3 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ /boot } \
device{ /dev/sda } \
. \
1000 1000 100% ext4 \
$lvmignore{ } \
$primary{ } \
method{ lvm } \
device{ /dev/sda } \
vg_name{ vg } \
. \
1000 1000 100% ext4 \
$lvmignore{ } \
$primary{ } \
method{ lvm } \
device{ /dev/sdb } \
vg_name{ vg } \
. \
1000 1000 100% ext4 \
$lvmignore{ } \
$primary{ } \
method{ lvm } \
device{ /dev/sdc } \
vg_name{ vg } \
. \
1000 1000 100% ext4 \
$lvmignore{ } \
$primary{ } \
method{ lvm } \
device{ /dev/sdd } \
vg_name{ vg } \
. \
256000 256000 100% ext4 \
lv_name{ root } \
method{ lvm } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
$lvmok{ } \
$defaultignore{ } \
in_vg{ vg } \
.
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment