Test keep GPT

pull/8/head
Bohan Yang 5 years ago committed by GitHub
parent 1fd68bd46b
commit ab37bdd871
  1. 12
      netboot.sh

@ -50,7 +50,6 @@ dry_run=
bbr= bbr=
cleartext_password= cleartext_password=
gpt= gpt=
initramfs=generic
install_recommends=true install_recommends=true
efi=false efi=false
@ -178,9 +177,6 @@ while [ $# -gt 0 ]; do
--gpt) --gpt)
gpt=true gpt=true
;; ;;
--targeted-initramfs)
initramfs=targeted
;;
--no-install-recommends) --no-install-recommends)
install_recommends=false install_recommends=false
;; ;;
@ -454,7 +450,7 @@ d-i partman-basicfilesystems/no_swap boolean false
#d-i partman-partitioning/confirm_new_label boolean true #d-i partman-partitioning/confirm_new_label boolean true
#d-i partman-partitioning/confirm_write_new_label boolean true #d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish d-i partman/choose_partition select finish
#d-i partman/confirm boolean true d-i partman/confirm boolean true
#d-i partman/confirm_nooverwrite boolean true #d-i partman/confirm_nooverwrite boolean true
EOF EOF
fi fi
@ -463,10 +459,12 @@ $save_preseed << EOF
# Base system installation # Base system installation
d-i base-installer/install-recommends boolean $install_recommends
d-i base-installer/initramfs-tools/driver-policy select $initramfs
EOF EOF
if [ "$install_recommends" = false ]; then
echo "d-i base-installer/install-recommends boolean $install_recommends" | $save_preseed
fi
if [ -n "$kernel" ]; then if [ -n "$kernel" ]; then
echo "d-i base-installer/kernel/image string $kernel" | $save_preseed echo "d-i base-installer/kernel/image string $kernel" | $save_preseed
fi fi

Loading…
Cancel
Save