From f70409b9031c02eb505a115fd0f9d50b9a505b83 Mon Sep 17 00:00:00 2001 From: Bohan Yang Date: Tue, 21 Sep 2021 23:01:40 +0800 Subject: [PATCH] Update partitioning recipe --- debi.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/debi.sh b/debi.sh index ed35abe..2405e11 100755 --- a/debi.sh +++ b/debi.sh @@ -595,7 +595,12 @@ EOF echo 'd-i partman/early_command string debconf-set partman-auto/disk "$(list-devices disk | head -n 1)"' | $save_preseed fi - [ "$force_gpt" = true ] && echo 'd-i partman-partitioning/default_label string gpt' | $save_preseed + [ "$force_gpt" = true ] && { + $save_preseed << 'EOF' +d-i partman-partitioning/choose_label string gpt +d-i partman-partitioning/default_label string gpt +EOF + } echo "d-i partman/default_filesystem string $filesystem" | $save_preseed @@ -633,10 +638,14 @@ EOF mountpoint{ / } \ . EOF - echo 'd-i partman-auto/choose_recipe select naive' | $save_preseed + if [ "$efi" = true ]; then + echo 'd-i partman-efi/non_efi_system boolean true' | $save_preseed + fi $save_preseed << 'EOF' +d-i partman-auto/choose_recipe select naive d-i partman-basicfilesystems/no_swap boolean false +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