Created
May 6, 2016 11:16
-
-
Save anonymous/4ba1b91aabd4314223bd349d719b4e54 to your computer and use it in GitHub Desktop.
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-auto/disk string /dev/sda | |
d-i partman-auto/method string crypto | |
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 | |
# gpt partitioning | |
d-i partman-basicfilesystem/choose_label string gpt | |
d-i partman-basicfilesystem/default_label string gpt | |
d-i partman-partitioning/choose_label string gpt | |
d-i partman-partitioning/default_label string gpt | |
d-i partman/choose_label string gpt | |
d-i partman/default_label string gpt | |
partman-partitioning partman-partitioning/choose_label string gpt | |
d-i partman-auto-lvm/new_vg_name string crypt | |
d-i partman-auto-lvm/guided_size string max | |
# if I add this line, it all falls apart | |
#d-i partman-auto-lvm/new_vg_name string crypt | |
d-i partman-auto/expert_recipe string \ | |
boot-crypto :: \ | |
100 100 100 free \ | |
$iflabel{ gpt } \ | |
$reusemethod{ } \ | |
$defaultignore{ } \ | |
method{ efi } \ | |
format{ } \ | |
. \ | |
300 300 300 ext4 \ | |
$defaultignore{ } \ | |
method{ format } format{ } \ | |
use_filesystem{ } filesystem{ ext4 } \ | |
mountpoint{ /boot } \ | |
. \ | |
3000 3000 -1 ext4 \ | |
$lvmok{ } \ | |
lv_name{ root } \ | |
method{ format } format{ } \ | |
use_filesystem{ } filesystem{ ext4 } \ | |
mountpoint{ / } \ | |
. | |
# if, in the last partition entry in the recipe, I add the folling, it all falls apart: | |
# in_vg{ crypt } | |
# wondering: could it be because the default is name crypt? | |
# accept the partitioning and write to disk | |
d-i partman-partitioning/confirm_write_new_label boolean true | |
# problem: the crypt type is not set using above recipe | |
# we need to set it via: | |
partman-crypto partman-crypto/crypto_type select dm-crypt | |
# for safety | |
partman-crypto partman-crypto/confirm boolean true | |
partman-crypto partman-crypto/mainmenu select | |
# not sure which one we should be using, d-i or partman-crypto | |
d-i partman-crypto/passphrase password 12345678 | |
d-i partman-crypto/passphrase-again password 12345678 | |
partman-crypto partman-crypto/passphrase password 12345678 | |
partman-crypto partman-crypto/passphrase-again password 12345678 | |
partman-crypto partman-crypto/weak_passphrase boolean true | |
d-i partman/choose_partition select finish | |
d-i partman/confirm boolean true | |
d-i partman/confirm_nooverwrite boolean true | |
d-i partman/confirm_new_label boolean true | |
# because we did not set up a swap | |
partman-basicfilesystems partman-basicfilesystems/no_swap boolean false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment