mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-27 06:26:15 +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
|
## 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`
|
||||||
|
|||||||
+15
-6
@@ -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
|
||||||
@@ -553,10 +562,10 @@ installer_directory="$boot_directory$installer"
|
|||||||
|
|
||||||
$save_grub_cfg << EOF
|
$save_grub_cfg << EOF
|
||||||
menuentry 'Debian Installer' --id debi {
|
menuentry 'Debian Installer' --id debi {
|
||||||
insmod part_msdos
|
insmod part_msdos
|
||||||
insmod part_gpt
|
insmod part_gpt
|
||||||
insmod ext2
|
insmod ext2
|
||||||
linux $installer_directory/linux$kernel_params
|
linux $installer_directory/linux$kernel_params
|
||||||
initrd $installer_directory/initrd.gz
|
initrd $installer_directory/initrd.gz
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user