This commit is contained in:
Bohan Yang
2020-11-07 15:32:22 +00:00
committed by GitHub
parent 9a549f7756
commit 9fa93abd39
2 changed files with 18 additions and 7 deletions
+3 -1
View File
@@ -14,7 +14,7 @@ This script is used to re-install VPS to **Debian 9 (stretch) or 10 (buster)** w
## 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
@@ -40,6 +40,8 @@ This script is used to re-install VPS to **Debian 9 (stretch) or 10 (buster)** w
- `--disk`
- `--partitioning-method`
- `--filesystem ext4`
- `--no-install-recommends`
- `--targeted-initramfs`
- `--kernel` Specify another package for kernel image, e.g. `linux-image-cloud-amd64`
- `--security-repository http://security.debian.org/debian-security`
- `--install`
+10 -1
View File
@@ -50,6 +50,8 @@ dry_run=
bbr=
cleartext_password=
gpt=
initramfs=generic
install_recommends=true
while [ $# -gt 0 ]; do
case $1 in
@@ -175,6 +177,12 @@ while [ $# -gt 0 ]; do
--gpt)
gpt=true
;;
--targeted-initramfs)
initramfs=targeted
;;
--no-install-recommends)
install_recommends=false
;;
*)
_err "Illegal option $1"
exit 1
@@ -432,7 +440,8 @@ $save_preseed << EOF
# 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
if [ -n "$kernel" ]; then