dpart-stdfde
Profile
dpart-stdfde
profile is the disk partition profile using standard full disk
encryption provided by Debian.
It's profile name is known as dpart-stdfde
.
dpart-stdfde
is available since v0.1.0
.
Inclusion
There are a number of ways depending on how you use Granatum.
USER INPUT: custom.preseed
There are settings required to be set inside custom.preseed
. See below for
detailed info.
Without the custom.preseed
, headless installation experience will break by
prompting you to fill in those missing input.
Granatum Templated .conf
Method
dpart-stdfde
is included as default option to partition your entire disk with
encrypted partition. It should always arrive as first in the plist
.
|
|
Crude Simple-CDD .conf
Method
If you're using your own .conf
file, then simply include dpart-stdfde
and
custom
(in sequence) into both profiles
and auto_profiles
:
|
|
dpart-stdfde.preseed
dpart-stdfde
preseeds a large number of settings thanks to the options
available from the partman
installer.
Terminate Installer Guide
- terminate auto-partition selection with
Guided - use entire disk and set up encrypted LVM
forpartman-auto/init_automatically_partition
(sincev0.1.0
) - terminate choose recipe with
All files in one partition (recommended for new users)
forpartman-auto/choose_recipe
(sincev0.1.0
)
Select Method to Use
- Set
crypto
forpartman-auto/method
(sincev0.1.0
)
Eliminate LVM and RAID Prompts
- set
true
forpartman-lvm/device_remove_lvm
(sincev0.1.0
) - set
true
forpartman-md/device_remove_md
(sincev0.1.0
) - set
true
forpartman-lvm/device_remove_lvm_span
(sincev0.1.0
) - set
true
forpartman-lvm/confim
(sincev0.1.0
) - set
true
forpartman-lvm/confirm_nooverwrite
(sincev0.1.0
) - set
true
forpartman-lvm/purge_lvm_from_device
(sincev0.1.0
) - set
true
forpartman-auto/purge_lvm_from_device
(sincev0.1.0
) - set
system
forpartman-auto-lvm/new_vg_name
volume group name (sincev0.1.0
)
Write Disk Confirmation
- set
true
forpartman/confirm_write_new_label
(sincev0.1.0
) - set
finish
forpartman/choose_partition
(sincev0.1.0
) - set
true
forpartman/confirm_nooverwrite
(sincev0.1.0
) - set
true
forpartman/confirm
(sincev0.1.0
)
Eliminate Force UEFI Prompts
- set
true
ford-i partman-efi/non_efi_system
(sincev0.2.0
)
Eliminate SWAP Prompts
- set
true
ford-i partman-basicfilesystems/no_swap
(sincev0.2.0
)
Set GPT Partition Table
The partition table is set to GPT instead of MBR (since v0.2.0
)
d-i partman-basicfilesystems/choose_label string gpt
d-i partman-basicfilesystems/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
Expert Partition Scheme
An expert partition recipe was added for consistency between devices and restore
“Expert Install” functionality. (since v0.2.0
)
# partition scheme
d-i partman-auto-lvm/new_vg_name string cerebrum_crypt
d-i partman-auto/choose_recipe select dpart-stdfde
d-i partman-auto/expert_recipe string \
dpart-stdfde :: \
1 1 1 free \
$bios_boot{ } \
method{ biosgrub } \
538 538 538 free \
$primary{ } \
$iflabel{ gpt } \
$lvmignore{ } \
method{ efi } format{ } \
. \
500 500 500 ext3 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /boot } \
. \
100% 100% 100% linux-swap \
$lvmok{ } lv_name{ swap } \
$primary{ } \
method{ swap } format{ } \
in_vg { cerebrum_crypt } \
. \
1000 10000 -1 ext4 \
$lvmok{ } lv_name{ root } \
$primary{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
in_vg { cerebrum_crypt } \
.
custom.preseed
dpart-stdfde
relies on some user input preseed data in custom.preseed
.
Hence, you need to include the following preseed in order to maintain the
headless installation experience. See template-custom.preseed
‘PARTITIONING SETTINGS’ section for code examples.
Set Partitioning Target Disk
You MUST provide the target disk location:
# set partition target disk
d-i partman-auto/disk string /dev/to/your/disk
Set Partitioning Sizing Guide
You MUST provide the sizing guide:
# set partition sizing guide (max, min, percent, 100G, etc)
d-i partman-auto-lvm/guided_size string max