mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-26 22:16:11 +00:00
Add --ethn
This commit is contained in:
@@ -24,6 +24,7 @@ This script is used to re-install VPS to **Debian 9 (stretch) or 10 (buster)** w
|
|||||||
- `--gateway`
|
- `--gateway`
|
||||||
- `--ns "8.8.8.8 8.8.4.4"`
|
- `--ns "8.8.8.8 8.8.4.4"`
|
||||||
- `--hostname debian`
|
- `--hostname debian`
|
||||||
|
- `--ethn` Disable Consistent Network Device Naming
|
||||||
- `--ssh-password`
|
- `--ssh-password`
|
||||||
- `--ssh-keys`
|
- `--ssh-keys`
|
||||||
- `--protocol http` [`http`, `https`, `ftp`]
|
- `--protocol http` [`http`, `https`, `ftp`]
|
||||||
|
|||||||
+3
-1
@@ -62,6 +62,8 @@ while [ $# -gt 0 ]; do
|
|||||||
DEBI_HOSTNAME=$2
|
DEBI_HOSTNAME=$2
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--ethn)
|
||||||
|
DEBI_KERNEL_PARAMS=' net.ifnames=0 biosdevname=0'
|
||||||
--ssh-password)
|
--ssh-password)
|
||||||
DEBI_SSH=true
|
DEBI_SSH=true
|
||||||
DEBI_SSH_PASSWORD=$2
|
DEBI_SSH_PASSWORD=$2
|
||||||
@@ -484,7 +486,7 @@ menuentry 'Debian Installer' --id debi {
|
|||||||
insmod part_msdos
|
insmod part_msdos
|
||||||
insmod part_gpt
|
insmod part_gpt
|
||||||
insmod ext2
|
insmod ext2
|
||||||
linux $DEBI_NEW_DIR/linux
|
linux $DEBI_NEW_DIR/linux$DEBI_KERNEL_PARAMS
|
||||||
initrd $DEBI_NEW_DIR/initrd.gz
|
initrd $DEBI_NEW_DIR/initrd.gz
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user