mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-26 22:16:11 +00:00
Update
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user