pull/8/head
Bohan Yang 5 years ago committed by GitHub
parent 9a549f7756
commit 9fa93abd39
  1. 4
      README.md
  2. 11
      netboot.sh

@ -14,7 +14,7 @@ This script is used to re-install VPS to **Debian 9 (stretch) or 10 (buster)** w
## Usage ## Usage
sudo sh -c "$(wget -qO- https://github.com/brentybh/debian-netboot/raw/master/netboot.sh)" -- <OPTIONS> sudo bash -c "$(wget -qO- https://github.com/brentybh/debian-netboot/raw/master/netboot.sh)" -- <OPTIONS>
## Available Options ## Available Options
@ -40,6 +40,8 @@ This script is used to re-install VPS to **Debian 9 (stretch) or 10 (buster)** w
- `--disk` - `--disk`
- `--partitioning-method` - `--partitioning-method`
- `--filesystem ext4` - `--filesystem ext4`
- `--no-install-recommends`
- `--targeted-initramfs`
- `--kernel` Specify another package for kernel image, e.g. `linux-image-cloud-amd64` - `--kernel` Specify another package for kernel image, e.g. `linux-image-cloud-amd64`
- `--security-repository http://security.debian.org/debian-security` - `--security-repository http://security.debian.org/debian-security`
- `--install` - `--install`

@ -50,6 +50,8 @@ dry_run=
bbr= bbr=
cleartext_password= cleartext_password=
gpt= gpt=
initramfs=generic
install_recommends=true
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
case $1 in case $1 in
@ -175,6 +177,12 @@ while [ $# -gt 0 ]; do
--gpt) --gpt)
gpt=true gpt=true
;; ;;
--targeted-initramfs)
initramfs=targeted
;;
--no-install-recommends)
install_recommends=false
;;
*) *)
_err "Illegal option $1" _err "Illegal option $1"
exit 1 exit 1
@ -432,7 +440,8 @@ $save_preseed << EOF
# Base system installation # Base system installation
d-i base-installer/install-recommends boolean false d-i base-installer/install-recommends boolean $install_recommends
d-i base-installer/initramfs-tools/driver-policy select $initramfs
EOF EOF
if [ -n "$kernel" ]; then if [ -n "$kernel" ]; then

Loading…
Cancel
Save