pull/8/head
Bohan Yang 5 years ago
parent 143b0c5549
commit bb0c39601e
  1. 2
      README.md
  2. 5
      debi.sh

@ -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'

Loading…
Cancel
Save