diff --git a/README.md b/README.md index fb7d894..b95befe 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,9 @@ This script is written to reinstall a VPS/virtual machine to Debian 10 Buster. Download the script with curl: curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh + + # for IPv6-only machines + curl -fLO --resolve 'raw.githubusercontent.com:443:2a04:4e42::133' https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh or wget: diff --git a/debi.sh b/debi.sh index 5f85f8e..79c4fb8 100755 --- a/debi.sh +++ b/debi.sh @@ -347,7 +347,7 @@ EOF echo 'd-i hw-detect/load_firmware boolean true' | $save_preseed if [ "$network_console" = true ]; then - $save_preseed << EOF + $save_preseed << 'EOF' # Network console @@ -511,7 +511,7 @@ EOF mountpoint{ / } \ . EOF - echo "d-i partman-auto/choose_recipe select naive" | $save_preseed + echo 'd-i partman-auto/choose_recipe select naive' | $save_preseed $save_preseed << 'EOF' d-i partman-basicfilesystems/no_swap boolean false @@ -560,7 +560,7 @@ popularity-contest popularity-contest/participate boolean false d-i grub-installer/bootdev string default EOF -[ "$force_efi_extra_removable" = true ] && echo "d-i grub-installer/force-efi-extra-removable boolean true" | $save_preseed +[ "$force_efi_extra_removable" = true ] && echo 'd-i grub-installer/force-efi-extra-removable boolean true' | $save_preseed [ -n "$kernel_params" ] && echo "d-i debian-installer/add-kernel-opts string$kernel_params" | $save_preseed $save_preseed << 'EOF'