Auto config EFI

This commit is contained in:
Bohan Yang
2020-11-09 04:17:51 +00:00
committed by GitHub
parent d561ffd9ec
commit 4c3a36ec41
2 changed files with 12 additions and 2 deletions
+2
View File
@@ -39,7 +39,9 @@ This script is used to re-install VPS to **Debian 9 (stretch) or 10 (buster)** w
- `--skip-partitioning`
- `--partitioning-method regular`
- `--disk`
- `--mbr`
- `--gpt`
- `--bios`
- `--efi`
- `--filesystem ext4`
- `--kernel` Choose an package for the kernel image
+10 -2
View File
@@ -45,8 +45,8 @@ ntp=0.debian.pool.ntp.org
skip_partitioning=false
partitioning_method=regular
disk=
gpt=false
efi=false
gpt=true
efi=
filesystem=ext4
kernel=
install_recommends=true
@@ -161,9 +161,15 @@ while [ $# -gt 0 ]; do
disk=$2
shift
;;
--mbr)
gpt=false
;;
--gpt)
gpt=true
;;
--bios)
efi=false
;;
--efi)
efi=true
;;
@@ -403,6 +409,8 @@ EOF
echo "d-i partman/default_filesystem string $filesystem" | $save_preseed
[ -z "$efi" ] && efi=false && [ -d /sys/firmware/efi ] && efi=true
$save_preseed << 'EOF'
d-i partman-auto/expert_recipe string \
naive :: \