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`
|
||||
- `--architecture`
|
||||
- `--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`
|
||||
|
||||
## Presets
|
||||
|
||||
@@ -62,6 +62,7 @@ power_off=false
|
||||
architecture=
|
||||
boot_directory=/boot/
|
||||
firmware=false
|
||||
force_efi_extra_removable=false
|
||||
dry_run=false
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
@@ -221,6 +222,9 @@ while [ $# -gt 0 ]; do
|
||||
--firmware)
|
||||
firmware=true
|
||||
;;
|
||||
--force-efi-extra-removable)
|
||||
force_efi_extra_removable=true
|
||||
;;
|
||||
--dry-run)
|
||||
dry_run=true
|
||||
;;
|
||||
@@ -506,6 +510,7 @@ popularity-contest popularity-contest/participate boolean false
|
||||
d-i grub-installer/bootdev string default
|
||||
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
|
||||
|
||||
$save_preseed << 'EOF'
|
||||
|
||||
Reference in New Issue
Block a user