mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-26 22:16:11 +00:00
Update
This commit is contained in:
@@ -53,6 +53,8 @@ This script is used to reinstall the Linux OS of a KVM-based VPS or a Hyper-V vi
|
|||||||
- `--power-off`
|
- `--power-off`
|
||||||
- `--architecture`
|
- `--architecture`
|
||||||
- `--boot-partition`
|
- `--boot-partition`
|
||||||
|
- `--firmware` Load additional [non-free firmwares](https://wiki.debian.org/Firmware#Firmware_during_the_installation). Seems to be useful on Oracle Cloud
|
||||||
|
- `--force-efi-extra-removable` [See](https://wiki.debian.org/UEFI#Force_grub-efi_installation_to_the_removable_media_path). Useful on Oracle Cloud
|
||||||
- `--dry-run`
|
- `--dry-run`
|
||||||
|
|
||||||
## Presets
|
## Presets
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ power_off=false
|
|||||||
architecture=
|
architecture=
|
||||||
boot_directory=/boot/
|
boot_directory=/boot/
|
||||||
firmware=false
|
firmware=false
|
||||||
|
force_efi_extra_removable=false
|
||||||
dry_run=false
|
dry_run=false
|
||||||
|
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
@@ -221,6 +222,9 @@ while [ $# -gt 0 ]; do
|
|||||||
--firmware)
|
--firmware)
|
||||||
firmware=true
|
firmware=true
|
||||||
;;
|
;;
|
||||||
|
--force-efi-extra-removable)
|
||||||
|
force_efi_extra_removable=true
|
||||||
|
;;
|
||||||
--dry-run)
|
--dry-run)
|
||||||
dry_run=true
|
dry_run=true
|
||||||
;;
|
;;
|
||||||
@@ -506,6 +510,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
|
||||||
[ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user