mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-26 22:16:11 +00:00
Auto config EFI
This commit is contained in:
@@ -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
@@ -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 :: \
|
||||
|
||||
Reference in New Issue
Block a user