mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-27 06:26:15 +00:00
Use GPT even if partitioning is skipped (#67)
This commit is contained in:
@@ -634,13 +634,13 @@ d-i time/zone string $timezone
|
|||||||
d-i clock-setup/utc boolean true
|
d-i clock-setup/utc boolean true
|
||||||
d-i clock-setup/ntp boolean true
|
d-i clock-setup/ntp boolean true
|
||||||
d-i clock-setup/ntp-server string $ntp
|
d-i clock-setup/ntp-server string $ntp
|
||||||
|
|
||||||
|
# Partitioning
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
[ "$disk_partitioning" = true ] && {
|
[ "$disk_partitioning" = true ] && {
|
||||||
$save_preseed << 'EOF'
|
$save_preseed << 'EOF'
|
||||||
|
|
||||||
# Partitioning
|
|
||||||
|
|
||||||
d-i partman-auto/method string regular
|
d-i partman-auto/method string regular
|
||||||
EOF
|
EOF
|
||||||
if [ -n "$disk" ]; then
|
if [ -n "$disk" ]; then
|
||||||
@@ -649,6 +649,7 @@ EOF
|
|||||||
# shellcheck disable=SC2016
|
# shellcheck disable=SC2016
|
||||||
echo 'd-i partman/early_command string debconf-set partman-auto/disk "$(list-devices disk | head -n 1)"' | $save_preseed
|
echo 'd-i partman/early_command string debconf-set partman-auto/disk "$(list-devices disk | head -n 1)"' | $save_preseed
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
[ "$force_gpt" = true ] && {
|
[ "$force_gpt" = true ] && {
|
||||||
$save_preseed << 'EOF'
|
$save_preseed << 'EOF'
|
||||||
@@ -657,6 +658,7 @@ d-i partman-partitioning/default_label string gpt
|
|||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[ "$disk_partitioning" = true ] && {
|
||||||
echo "d-i partman/default_filesystem string $filesystem" | $save_preseed
|
echo "d-i partman/default_filesystem string $filesystem" | $save_preseed
|
||||||
|
|
||||||
[ -z "$efi" ] && {
|
[ -z "$efi" ] && {
|
||||||
|
|||||||
Reference in New Issue
Block a user