浏览代码

UEFI worked

Bohan Yang 5 年之前
父节点
当前提交
b4b1216235
共有 2 个文件被更改,包括 5 次插入6 次删除
  1. 0 1
      README.md
  2. 5 5
      netboot.sh

+ 0 - 1
README.md

@@ -41,7 +41,6 @@ This script is used to re-install VPS to **Debian 9 (stretch) or 10 (buster)** w
  - `--partitioning-method`
  - `--filesystem ext4`
  - `--no-install-recommends`
- - `--targeted-initramfs`
  - `--kernel` Specify another package for kernel image, e.g. `linux-image-cloud-amd64`
  - `--security-repository http://security.debian.org/debian-security`
  - `--install`

+ 5 - 5
netboot.sh

@@ -418,14 +418,14 @@ EOF
 d-i partman-auto/expert_recipe string \
     naive :: \
         1 1 1 free \
-	        $iflabel{ gpt } \
-	        $reusemethod{ } \
-	        method{ biosgrub } \
+            $iflabel{ gpt } \
+            $reusemethod{ } \
+            method{ biosgrub } \
         . \
 EOF
         if [ "$efi" = true ]; then
             $save_preseed << 'EOF'
-        512 512 512 free \
+        538 538 1075 free \
             $iflabel{ gpt } \
             $reusemethod{ } \
             method{ efi } \
@@ -434,7 +434,7 @@ EOF
 EOF
         fi
         $save_preseed << 'EOF'
-        1536 1536 -1 $default_filesystem \
+        2149 2150 -1 $default_filesystem \
             method{ format } \
             format{ } \
             use_filesystem{ } \