mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-26 22:16:11 +00:00
Update
This commit is contained in:
@@ -16,27 +16,27 @@ This script is used to reinstall the Linux OS of a KVM-based VPS or a Hyper-V vi
|
|||||||
|
|
||||||
## Available Options
|
## Available Options
|
||||||
|
|
||||||
- `--preset` (`china`/`cloud`)
|
- `--preset <string>` Shortcut for applying [preset options](#presets)
|
||||||
- `--ip`
|
- `--ip <string>` Static public/private IP, e.g. `10.0.0.2`
|
||||||
- `--netmask`
|
- `--netmask <string>` e.g. `255.255.255.0` / `ffff:ffff:ffff:ffff::`
|
||||||
- `--gateway`
|
- `--gateway <string>` e.g. `10.0.0.1`
|
||||||
- `--dns '8.8.8.8 8.8.4.4'`
|
- `--dns '8.8.8.8 8.8.4.4'` Ignored if `--ip` is not specified. Quoted string where IP addresses are seperated by spaces
|
||||||
- `--hostname debian`
|
- `--hostname debian`
|
||||||
- `--installer-password`
|
- `--installer-password <string>` Enable installer network console to monitor installation status. e.g. `ssh installer@10.0.0.2`
|
||||||
- `--authorized-keys-url`
|
- `--authorized-keys-url <string>` Setup SSH public key authentication for the new user and enable installer network console. e.g. `https://github.com/bohanyang.keys`
|
||||||
- `--suite buster`
|
- `--suite buster`
|
||||||
- `--mirror-protocol http` (`http`/`https`/`ftp`)
|
- `--mirror-protocol http` or `https` or `ftp`
|
||||||
- `--mirror-host deb.debian.org`
|
- `--mirror-host deb.debian.org`
|
||||||
- `--mirror-directory /debian`
|
- `--mirror-directory /debian`
|
||||||
- `--security-repository http://security.debian.org/debian-security` Magic value: `'mirror' = <mirror-protocol>://<mirror-host>/<mirror-directory>/../debian-security`
|
- `--security-repository http://security.debian.org/debian-security` Magic value: `'mirror' = <mirror-protocol>://<mirror-host>/<mirror-directory>/../debian-security`
|
||||||
- `--skip-account-setup`
|
- `--skip-account-setup`
|
||||||
- `--username debian`
|
- `--username debian` New user with `sudo` privilege or `root`
|
||||||
- `--password`
|
- `--password <string>` New user password to set. **Will be prompted if not specified here**
|
||||||
- `--timezone UTC` https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
|
- `--timezone UTC` https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
|
||||||
- `--ntp 0.debian.pool.ntp.org`
|
- `--ntp 0.debian.pool.ntp.org`
|
||||||
- `--skip-partitioning`
|
- `--skip-partitioning`
|
||||||
- `--partitioning-method regular`
|
- `--partitioning-method regular`
|
||||||
- `--disk`
|
- `--disk <string>` Manually select a boot disk when more than one disk is available. e.g. `/dev/sda`
|
||||||
- `--force-gpt` Create a *GUID Partition Table* **(Default)**
|
- `--force-gpt` Create a *GUID Partition Table* **(Default)**
|
||||||
- `--no-force-gpt`
|
- `--no-force-gpt`
|
||||||
- `--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. [See](https://askubuntu.com/a/501360)
|
- `--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. [See](https://askubuntu.com/a/501360)
|
||||||
@@ -45,17 +45,18 @@ This script is used to reinstall the Linux OS of a KVM-based VPS or a Hyper-V vi
|
|||||||
- `--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
|
||||||
- `--no-install-recommends`
|
- `--no-install-recommends`
|
||||||
- `--install`
|
- `--install 'ca-certificates libpam-systemd'` Additional packages to install. Quoted string where package names are seperated by spaces. **Package names specified here will override the default list, rather than append to it**
|
||||||
- `--safe-upgrade`
|
- `--safe-upgrade` **(Default)** `apt upgrade --with-new-pkgs`. [See](https://salsa.debian.org/installer-team/pkgsel/-/blob/master/debian/postinst)
|
||||||
- `--full-upgrade`
|
- `--full-upgrade` `apt dist-upgrade`
|
||||||
|
- `--no-upgrade`
|
||||||
- `--eth` Disable *Consistent Network Device Naming* to get `eth0`, `eth1`, etc. back
|
- `--eth` Disable *Consistent Network Device Naming* to get `eth0`, `eth1`, etc. back
|
||||||
- `--bbr`
|
- `--bbr` Enable TCP BBR congestion control
|
||||||
- `--power-off`
|
- `--power-off` Power off after installation rather than reboot
|
||||||
- `--architecture`
|
- `--architecture` e.g. `amd64`, `i386`, `arm64`, `armhf`, etc.
|
||||||
- `--boot-partition`
|
- `--boot-partition` Should be used if `/boot` directory is mounted from a dedicated partition like a LVM setup
|
||||||
- `--firmware` Load additional [non-free firmwares](https://wiki.debian.org/Firmware#Firmware_during_the_installation). Seems to be useful on Oracle Cloud
|
- `--firmware` Load additional [non-free firmwares](https://wiki.debian.org/Firmware#Firmware_during_the_installation)
|
||||||
- `--force-efi-extra-removable` [See](https://wiki.debian.org/UEFI#Force_grub-efi_installation_to_the_removable_media_path). 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` Print generated preseed and GRUB entry without downloading the installer and actually saving them
|
||||||
|
|
||||||
## Presets
|
## Presets
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ efi=
|
|||||||
filesystem=ext4
|
filesystem=ext4
|
||||||
kernel=
|
kernel=
|
||||||
install_recommends=true
|
install_recommends=true
|
||||||
install=
|
install='ca-certificates libpam-systemd'
|
||||||
upgrade=
|
upgrade=
|
||||||
kernel_params=
|
kernel_params=
|
||||||
bbr=false
|
bbr=false
|
||||||
@@ -197,6 +197,9 @@ while [ $# -gt 0 ]; do
|
|||||||
install=$2
|
install=$2
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--no-upgrade)
|
||||||
|
upgrade=none
|
||||||
|
;;
|
||||||
--safe-upgrade)
|
--safe-upgrade)
|
||||||
upgrade=safe-upgrade
|
upgrade=safe-upgrade
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user