Browse Source

Merge branch 'master' of github.com:bohanyang/debi

Bohan Yang 5 years ago
parent
commit
aa7d723a08
2 changed files with 6 additions and 3 deletions
  1. 3 0
      README.md
  2. 3 3
      debi.sh

+ 3 - 0
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:
 Download the script with curl:
 
 
     curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh
     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:
 or wget:
 
 

+ 3 - 3
debi.sh

@@ -347,7 +347,7 @@ EOF
 echo 'd-i hw-detect/load_firmware boolean true' | $save_preseed
 echo 'd-i hw-detect/load_firmware boolean true' | $save_preseed
 
 
 if [ "$network_console" = true ]; then
 if [ "$network_console" = true ]; then
-    $save_preseed << EOF
+    $save_preseed << 'EOF'
 
 
 # Network console
 # Network console
 
 
@@ -511,7 +511,7 @@ EOF
             mountpoint{ / } \
             mountpoint{ / } \
         .
         .
 EOF
 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'
     $save_preseed << 'EOF'
 d-i partman-basicfilesystems/no_swap boolean false
 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
 d-i grub-installer/bootdev string default
 EOF
 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
 [ -n "$kernel_params" ] && echo "d-i debian-installer/add-kernel-opts string$kernel_params" | $save_preseed
 
 
 $save_preseed << 'EOF'
 $save_preseed << 'EOF'