@ -16,63 +32,63 @@ This script is used to reinstall the Linux OS of a KVM-based VPS or a Hyper-V vi
## Available Options
## Available Options
-`--preset <string>` Shortcut for applying [preset options](#presets)
*`--preset <string>` Shortcut for applying [preset options](#presets)
-`--ip <string>` Static public/private IP, e.g. `10.0.0.2`
*`--ip <string>` Static public/private IP, e.g. `10.0.0.2`
-`--netmask <string>` e.g. `255.255.255.0` / `ffff:ffff:ffff:ffff::`
*`--netmask <string>` e.g. `255.255.255.0` / `ffff:ffff:ffff:ffff::`
-`--gateway <string>` e.g. `10.0.0.1`
*`--gateway <string>` e.g. `10.0.0.1`
-`--dns '8.8.8.8 8.8.4.4'` Ignored if `--ip` is not specified. Quoted string where IP addresses are seperated by spaces
*`--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 <string>` Enable installer network console to monitor installation status. e.g. `ssh installer@10.0.0.2`
*`--installer-password <string>` Enable installer network console to monitor installation status. e.g. `ssh installer@10.0.0.2`
-`--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`
*`--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`
-`--disk <string>` Manually select a boot disk when more than one disk is available. e.g. `/dev/sda`
*`--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)
-`--efi` Create an *EFI system partition*. Default if `/sys/firmware/efi` exists
*`--efi` Create an *EFI system partition*. Default if `/sys/firmware/efi` exists
-`--filesystem ext4`
*`--filesystem ext4`
-`--kernel <string>` Choose an package for the kernel image
*`--kernel <string>` 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 '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**
* `--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**