mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-26 22:16:11 +00:00
Release Debian 12; Remove support for Debian 9
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
[General description in English ↓](#introduction)
|
||||
|
||||
## VPS 网络重装 Debian 11 脚本
|
||||
## VPS 网络重装 Debian 12 脚本
|
||||
|
||||
**暂不支持 Oracle Linux 作为原系统。创建新机器时请选择 Ubuntu 20.04 或 18.04 系统模板。**
|
||||
**暂不支持 Oracle Linux 作为原系统。创建新机器时请选择 Ubuntu 系统模板。**
|
||||
|
||||
下载脚本:
|
||||
|
||||
@@ -38,7 +38,7 @@ sudo shutdown -r now
|
||||
|
||||
## Introduction
|
||||
|
||||
This script is written to reinstall a VPS/virtual machine to minimal Debian 11.
|
||||
This script is written to reinstall a VPS/virtual machine to minimal Debian 10/11/12.
|
||||
|
||||
## Should Work On
|
||||
|
||||
@@ -106,10 +106,10 @@ Otherwise, you can run this command to revert all changes made by the script:
|
||||
* `--dns '8.8.8.8 8.8.4.4'` (Default IPv6 DNS: `2001:4860:4860::8888 2001:4860:4860::8844`)
|
||||
* `--hostname <string>` FQDN hostname (includes the domain name), e.g. `server1.example.com`
|
||||
* `--network-console` Enable the network console of the installer. `ssh installer@ip` to connect
|
||||
* `--version 11` Supports: `9`, `10`, `11`, `12`
|
||||
* `--suite bullseye` **For normal cases, please use `--version` instead.** e.g. `stable`, `testing`, `sid`
|
||||
* `--release-d-i` d-i (Debian Installer) for the released versions: 11 (bullseye), 10 (buster) and 9 (stretch)
|
||||
* `--daily-d-i` Use latest daily build of d-i (Debian Installer) for the unreleased version: 12 (bookworm), sid (unstable)
|
||||
* `--version 12` Supports: `10`, `11`, `12`, `13`
|
||||
* `--suite bullseye` **Please use `--version` instead if you don't have special needs.** e.g. `stable`, `testing`, `sid`
|
||||
* `--release-d-i` d-i (Debian Installer) for the released versions: 12 (bookworm), 11 (bullseye) and 10 (buster)
|
||||
* `--daily-d-i` Use latest daily build of d-i (Debian Installer) for the unreleased version: 13 (trixie), sid (unstable)
|
||||
* `--mirror-protocol http` or `https` or `ftp`
|
||||
* `--https` alias to `--mirror-protocol https`
|
||||
* `--reuse-proxy` Reuse the value of `http(s)_proxy` environment variable as the mirror proxy
|
||||
|
||||
@@ -111,10 +111,10 @@ set_mirror_proxy() {
|
||||
|
||||
set_security_archive() {
|
||||
case $suite in
|
||||
stretch|oldoldstable|buster|oldstable)
|
||||
buster|oldoldstable|burixie|oldstable)
|
||||
security_archive="$suite/updates"
|
||||
;;
|
||||
bullseye|stable|bookworm|testing)
|
||||
bookworm|stable|trixie|testing)
|
||||
security_archive="$suite-security"
|
||||
;;
|
||||
sid|unstable)
|
||||
@@ -127,10 +127,10 @@ set_security_archive() {
|
||||
|
||||
set_daily_d_i() {
|
||||
case $suite in
|
||||
stretch|oldoldstable|buster|oldstable|bullseye|stable|bookworm)
|
||||
buster|oldoldstable|bullseye|oldstable|bookworm|stable)
|
||||
daily_d_i=false
|
||||
;;
|
||||
testing|sid|unstable)
|
||||
trixie|testing|sid|unstable)
|
||||
daily_d_i=true
|
||||
;;
|
||||
*)
|
||||
@@ -146,16 +146,16 @@ set_suite() {
|
||||
|
||||
set_debian_version() {
|
||||
case $1 in
|
||||
9|stretch|oldoldstable)
|
||||
set_suite stretch
|
||||
;;
|
||||
10|buster|oldstable)
|
||||
10|buster|oldoldstable)
|
||||
set_suite buster
|
||||
;;
|
||||
11|bullseye|stable)
|
||||
11|bullseye|oldstable)
|
||||
set_suite bullseye
|
||||
;;
|
||||
12|bookworm|testing)
|
||||
12|bookworm|stable)
|
||||
set_suite bookworm
|
||||
;;
|
||||
13|trixie|testing)
|
||||
set_suite bookworm
|
||||
;;
|
||||
sid|unstable)
|
||||
@@ -168,14 +168,11 @@ set_debian_version() {
|
||||
|
||||
has_cloud_kernel() {
|
||||
case $suite in
|
||||
stretch|oldoldstable)
|
||||
[ "$architecture" = amd64 ] && [ "$bpo_kernel" = true ] && return
|
||||
;;
|
||||
buster|oldstable)
|
||||
buster|oldoldstable)
|
||||
[ "$architecture" = amd64 ] && return
|
||||
[ "$architecture" = arm64 ] && [ "$bpo_kernel" = true ] && return
|
||||
;;
|
||||
bullseye|stable|bookworm|testing|sid|unstable)
|
||||
bullseye|oldstable|bookworm|stable|trixie|testing|sid|unstable)
|
||||
[ "$architecture" = amd64 ] || [ "$architecture" = arm64 ] && return
|
||||
esac
|
||||
|
||||
@@ -187,7 +184,7 @@ has_cloud_kernel() {
|
||||
|
||||
has_backports() {
|
||||
case $suite in
|
||||
stretch|oldoldstable|buster|oldstable|bullseye|stable|bookworm|testing) return
|
||||
buster|oldoldstable|bullseye|oldstable|bookworm|stable|trixie|testing) return
|
||||
esac
|
||||
|
||||
warn "No backports kernel is available for $suite"
|
||||
@@ -202,7 +199,7 @@ gateway=
|
||||
dns='8.8.8.8 8.8.4.4'
|
||||
hostname=
|
||||
network_console=false
|
||||
set_debian_version 11
|
||||
set_debian_version 12
|
||||
mirror_protocol=http
|
||||
mirror_host=deb.debian.org
|
||||
mirror_directory=/debian
|
||||
|
||||
Reference in New Issue
Block a user