mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-27 14:36:20 +00:00
Compare commits
6
Commits
b853e09987
...
1282ca8593
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1282ca8593 | ||
|
|
0c7bad1e42 | ||
|
|
ab6c04b571 | ||
|
|
7844eb5a37 | ||
|
|
e384a10dc9 | ||
|
|
4ea2f8b3a2 |
@@ -4,8 +4,6 @@
|
||||
|
||||
## VPS 网络重装 Debian 12 脚本
|
||||
|
||||
**暂不支持 Oracle Linux 作为原系统。创建新机器时请选择 Ubuntu 系统模板。**
|
||||
|
||||
下载脚本:
|
||||
|
||||
```
|
||||
@@ -54,7 +52,7 @@ This script is written to reinstall a VPS/virtual machine to minimal Debian 10/1
|
||||
|
||||
* Debian 8 or later
|
||||
* Ubuntu 14.04 or later
|
||||
* CentOS 7 or later
|
||||
* RHEL/CentOS/Alma/Rocky/Oracle Linux 7 or later
|
||||
|
||||
## How It Works
|
||||
|
||||
|
||||
@@ -214,7 +214,7 @@ sudo_with_password=false
|
||||
timezone=UTC
|
||||
ntp=time.google.com
|
||||
disk_partitioning=true
|
||||
disk=
|
||||
disk="/dev/$(lsblk -no PKNAME "$(df /boot | grep -Eo '/dev/[a-z0-9]+')")"
|
||||
force_gpt=true
|
||||
efi=
|
||||
esp=106
|
||||
@@ -791,6 +791,7 @@ d-i partman-partitioning/confirm_write_new_label boolean true
|
||||
d-i partman/choose_partition select finish
|
||||
d-i partman/confirm boolean true
|
||||
d-i partman/confirm_nooverwrite boolean true
|
||||
d-i partman-lvm/device_remove_lvm boolean true
|
||||
EOF
|
||||
}
|
||||
|
||||
@@ -914,6 +915,7 @@ EOF
|
||||
# shellcheck disable=SC2016
|
||||
echo 'zz_debi=/etc/default/grub.d/zz-debi.cfg; if [ -f "$zz_debi" ]; then . "$zz_debi"; fi' >> /etc/default/grub
|
||||
grub_cfg=/boot/grub2/grub.cfg
|
||||
[ -d /sys/firmware/efi ] && grub_cfg=/boot/efi/EFI/*/grub.cfg
|
||||
grub2-mkconfig -o "$grub_cfg"
|
||||
elif command_exists grub-mkconfig; then
|
||||
tmp=$(mktemp)
|
||||
|
||||
Reference in New Issue
Block a user