mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-27 06:26:15 +00:00
Better term 'force gpt' & explanation
This commit is contained in:
@@ -39,10 +39,10 @@ This script is used to re-install VPS to **Debian 9 (stretch) or 10 (buster)** w
|
|||||||
- `--skip-partitioning`
|
- `--skip-partitioning`
|
||||||
- `--partitioning-method regular`
|
- `--partitioning-method regular`
|
||||||
- `--disk`
|
- `--disk`
|
||||||
- `--mbr`
|
- `--force-gpt` Create a *GUID Partition Table* **(Default)**
|
||||||
- `--gpt`
|
- `--no-force-gpt`
|
||||||
- `--bios`
|
- `--bios` Don't create *EFI system partition*. If GPT is being used, create a *BIOS boot partition* (`bios_grub` partition). Default if `/sys/firmware/efi` is absent
|
||||||
- `--efi`
|
- `--efi` Create an *EFI system partition*. Default if `/sys/firmware/efi` exists
|
||||||
- `--filesystem ext4`
|
- `--filesystem ext4`
|
||||||
- `--kernel` Choose an package for the kernel image
|
- `--kernel` Choose an package for the kernel image
|
||||||
- `--cloud-kernel` Choose `linux-image-cloud-amd64` as the kernel image
|
- `--cloud-kernel` Choose `linux-image-cloud-amd64` as the kernel image
|
||||||
|
|||||||
+6
-6
@@ -45,7 +45,7 @@ ntp=0.debian.pool.ntp.org
|
|||||||
skip_partitioning=false
|
skip_partitioning=false
|
||||||
partitioning_method=regular
|
partitioning_method=regular
|
||||||
disk=
|
disk=
|
||||||
gpt=true
|
force_gpt=true
|
||||||
efi=
|
efi=
|
||||||
filesystem=ext4
|
filesystem=ext4
|
||||||
kernel=
|
kernel=
|
||||||
@@ -161,11 +161,11 @@ while [ $# -gt 0 ]; do
|
|||||||
disk=$2
|
disk=$2
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--mbr)
|
--force-gpt)
|
||||||
gpt=false
|
force_gpt=true
|
||||||
;;
|
;;
|
||||||
--gpt)
|
--no-force-gpt)
|
||||||
gpt=true
|
force_gpt=false
|
||||||
;;
|
;;
|
||||||
--bios)
|
--bios)
|
||||||
efi=false
|
efi=false
|
||||||
@@ -403,7 +403,7 @@ EOF
|
|||||||
|
|
||||||
if [ "$partitioning_method" = regular ]; then
|
if [ "$partitioning_method" = regular ]; then
|
||||||
|
|
||||||
[ "$gpt" = true ] && $save_preseed << 'EOF'
|
[ "$force_gpt" = true ] && $save_preseed << 'EOF'
|
||||||
d-i partman-partitioning/default_label string gpt
|
d-i partman-partitioning/default_label string gpt
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user