mirror of
https://github.com/bin456789/reinstall.git
synced 2025-07-02 00:59:53 +00:00
Compare commits
2 Commits
06559947e3
...
5b5b2698e2
Author | SHA1 | Date | |
---|---|---|---|
![]() |
5b5b2698e2 | ||
![]() |
b664df17e8 |
10
README.en.md
10
README.en.md
@ -38,10 +38,10 @@ The system requirements for the target system are as follows:
|
||||
| <img width="16" height="16" src="https://img.alicdn.com/imgextra/i1/O1CN01oJnJZg1yK4RzI4Rx2_!!6000000006559-2-tps-118-118.png" /> Anolis | 7, 8, 23 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://www.redhat.com/favicon.ico" /> RHEL <img width="16" height="16" src="https://almalinux.org/fav/favicon.ico" /> AlmaLinux <img width="16" height="16" src="https://rockylinux.org/favicon.png" /> Rocky <img width="16" height="16" src="https://www.oracle.com/asset/web/favicons/favicon-32.png" /> Oracle | 8, 9 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://opencloudos.org/qq.ico" /> OpenCloudOS | 8, 9, Stream 23 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://www.centos.org/assets/icons/favicon.svg" /> CentOS | 9, 10 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://www.centos.org/assets/icons/favicon.svg" /> CentOS Stream | 9, 10 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://fedoraproject.org/favicon.ico" /> Fedora | 40, 41 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://www.openeuler.org/favicon.ico" /> openEuler | 20.03 LTS - 24.03 LTS, 24.09 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://static.opensuse.org/favicon.ico" /> openSUSE | 15.6, Tumbleweed (Rolling) | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://www.openeuler.org/favicon.ico" /> openEuler | 20.03 LTS - 24.03 LTS, 25.03 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://static.opensuse.org/favicon.ico" /> openSUSE | Leap 15.6, Tumbleweed (Rolling) | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://github.com/user-attachments/assets/99a542b6-6482-4086-addf-f192c06fef73" /> NixOS | 24.11 | 512 MB | 5 GB |
|
||||
| <img width="16" height="16" src="https://archlinux.org/static/favicon.png" /> Arch | Rolling | 512 MB | 5 GB |
|
||||
| <img width="16" height="16" src="https://www.gentoo.org/assets/img/logo/gentoo-g.png" /> Gentoo | Rolling | 512 MB | 5 GB |
|
||||
@ -137,7 +137,7 @@ bash reinstall.sh anolis 7|8|23
|
||||
debian 9|10|11|12
|
||||
opensuse 15.6|tumbleweed
|
||||
alpine 3.18|3.19|3.20|3.21
|
||||
openeuler 20.03|22.03|24.03|24.09
|
||||
openeuler 20.03|22.03|24.03|25.03
|
||||
ubuntu 16.04|18.04|20.04|22.04|24.04|24.10 [--minimal]
|
||||
kali
|
||||
arch
|
||||
@ -465,7 +465,7 @@ Open File menu > Open Image File, select the iso to be installed to get the imag
|
||||
|
||||
#### Considerations for Installing Windows on ARM
|
||||
|
||||
Most ARM machines support installing Windows 11 24H2.
|
||||
Most ARM machines support installing latest Windows 11.
|
||||
|
||||
During the installation process, you might encounter a black screen, and the serial console may display `ConvertPages: failed to find range`, but neither issue affects the installation.
|
||||
|
||||
|
10
README.md
10
README.md
@ -38,10 +38,10 @@
|
||||
| <img width="16" height="16" src="https://img.alicdn.com/imgextra/i1/O1CN01oJnJZg1yK4RzI4Rx2_!!6000000006559-2-tps-118-118.png" /> Anolis | 7, 8, 23 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://www.redhat.com/favicon.ico" /> RHEL <img width="16" height="16" src="https://almalinux.org/fav/favicon.ico" /> AlmaLinux <img width="16" height="16" src="https://rockylinux.org/favicon.png" /> Rocky <img width="16" height="16" src="https://www.oracle.com/asset/web/favicons/favicon-32.png" /> Oracle | 8, 9 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://opencloudos.org/qq.ico" /> OpenCloudOS | 8, 9, Stream 23 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://www.centos.org/assets/icons/favicon.svg" /> CentOS | 9, 10 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://www.centos.org/assets/icons/favicon.svg" /> CentOS Stream | 9, 10 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://fedoraproject.org/favicon.ico" /> Fedora | 40, 41 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://www.openeuler.org/favicon.ico" /> openEuler | 20.03 LTS - 24.03 LTS, 24.09 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://static.opensuse.org/favicon.ico" /> openSUSE | 15.6, Tumbleweed (滚动) | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://www.openeuler.org/favicon.ico" /> openEuler | 20.03 LTS - 24.03 LTS, 25.03 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://static.opensuse.org/favicon.ico" /> openSUSE | Leap 15.6, Tumbleweed (滚动) | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://github.com/user-attachments/assets/99a542b6-6482-4086-addf-f192c06fef73" /> NixOS | 24.11 | 512 MB | 5 GB |
|
||||
| <img width="16" height="16" src="https://archlinux.org/static/favicon.png" /> Arch | 滚动 | 512 MB | 5 GB |
|
||||
| <img width="16" height="16" src="https://www.gentoo.org/assets/img/logo/gentoo-g.png" /> Gentoo | 滚动 | 512 MB | 5 GB |
|
||||
@ -137,7 +137,7 @@ bash reinstall.sh anolis 7|8|23
|
||||
debian 9|10|11|12
|
||||
opensuse 15.6|tumbleweed
|
||||
alpine 3.18|3.19|3.20|3.21
|
||||
openeuler 20.03|22.03|24.03|24.09
|
||||
openeuler 20.03|22.03|24.03|25.03
|
||||
ubuntu 16.04|18.04|20.04|22.04|24.04|24.10 [--minimal]
|
||||
kali
|
||||
arch
|
||||
@ -465,7 +465,7 @@ Windows Server 2025 SERVERDATACENTER
|
||||
|
||||
#### ARM 安装 Windows 的注意事项
|
||||
|
||||
大部分 ARM 机器都支持安装 Windows 11 24H2
|
||||
大部分 ARM 机器都支持安装最新版 Windows 11
|
||||
|
||||
安装过程可能会黑屏,串行控制台可能会显示 `ConvertPages: failed to find range`,均不影响正常安装
|
||||
|
||||
|
14
reinstall.sh
14
reinstall.sh
@ -57,7 +57,7 @@ Usage: $reinstall_____ anolis 7|8|23
|
||||
debian 9|10|11|12
|
||||
opensuse 15.6|tumbleweed
|
||||
alpine 3.18|3.19|3.20|3.21
|
||||
openeuler 20.03|22.03|24.03|24.09
|
||||
openeuler 20.03|22.03|24.03|25.03
|
||||
ubuntu 16.04|18.04|20.04|22.04|24.04|24.10 [--minimal]
|
||||
kali
|
||||
arch
|
||||
@ -1046,12 +1046,6 @@ setos() {
|
||||
setos_alpine() {
|
||||
is_virt && flavour=virt || flavour=lts
|
||||
|
||||
# alpine aarch64 3.16/3.17 virt 没有直连链接
|
||||
if [ "$basearch" = aarch64 ] &&
|
||||
{ [ "$releasever" = 3.16 ] || [ "$releasever" = 3.17 ]; }; then
|
||||
flavour=lts
|
||||
fi
|
||||
|
||||
# 不要用https 因为甲骨文云arm initramfs阶段不会从硬件同步时钟,导致访问https出错
|
||||
if is_in_china; then
|
||||
mirror=http://mirror.nju.edu.cn/alpine/v$releasever
|
||||
@ -1761,7 +1755,7 @@ verify_os_name() {
|
||||
'debian 9|10|11|12' \
|
||||
'opensuse 15.6|tumbleweed' \
|
||||
'alpine 3.18|3.19|3.20|3.21' \
|
||||
'openeuler 20.03|22.03|24.03|24.09' \
|
||||
'openeuler 20.03|22.03|24.03|25.03' \
|
||||
'ubuntu 16.04|18.04|20.04|22.04|24.04|24.10' \
|
||||
'kali' \
|
||||
'arch' \
|
||||
@ -3410,15 +3404,13 @@ EOF
|
||||
# grep -E -A5 'configure_ip\(\)' init
|
||||
|
||||
# hack 4 运行 trans.start
|
||||
# exec /bin/busybox switch_root $switch_root_opts $sysroot $chart_init "$KOPT_init" $KOPT_init_args # 3.17
|
||||
# exec switch_root $switch_root_opts $sysroot $chart_init "$KOPT_init" $KOPT_init_args # 3.18
|
||||
# 1. alpine arm initramfs 时间问题 要添加 --no-check-certificate
|
||||
# 2. aws t4g arm 如果没设置console=ttyx,在initramfs里面wget https会出现bad header错误,chroot后正常
|
||||
# Connecting to raw.githubusercontent.com (185.199.108.133:443)
|
||||
# 60C0BB2FFAFF0000:error:0A00009C:SSL routines:ssl3_get_record:http request:ssl/record/ssl3_record.c:345:
|
||||
# ssl_client: SSL_connect
|
||||
# wget: bad header line: <20>
|
||||
insert_into_file init before '^exec (/bin/busybox )?switch_root' <<EOF
|
||||
insert_into_file init before '^exec switch_root' <<EOF
|
||||
# trans
|
||||
# echo "wget --no-check-certificate -O- $confhome/trans.sh | /bin/ash" >\$sysroot/etc/local.d/trans.start
|
||||
# wget --no-check-certificate -O \$sysroot/etc/local.d/trans.start $confhome/trans.sh
|
||||
|
13
trans.sh
13
trans.sh
@ -3870,16 +3870,21 @@ chroot_dnf() {
|
||||
fi
|
||||
}
|
||||
|
||||
chroot_apt_install() {
|
||||
chroot_apt_update() {
|
||||
os_dir=$1
|
||||
shift
|
||||
|
||||
current_hash=$(cat $os_dir/etc/apt/sources.list $os_dir/etc/apt/sources.list.d/*.sources 2>/dev/null | md5sum)
|
||||
if ! [ "$saved_hash" = "$current_hash" ]; then
|
||||
chroot $os_dir apt-get update
|
||||
saved_hash="$current_hash"
|
||||
fi
|
||||
}
|
||||
|
||||
chroot_apt_install() {
|
||||
os_dir=$1
|
||||
shift
|
||||
|
||||
chroot_apt_update $os_dir
|
||||
DEBIAN_FRONTEND=noninteractive chroot $os_dir apt-get install -y "$@"
|
||||
}
|
||||
|
||||
@ -3887,6 +3892,10 @@ chroot_apt_remove() {
|
||||
os_dir=$1
|
||||
shift
|
||||
|
||||
# minimal 镜像 删除 grub-pc 时会安装 grub-efi-amd64
|
||||
# 因此需要先更新索引
|
||||
chroot_apt_update $os_dir
|
||||
|
||||
# 不能用 apt remove --purge -y xxx yyy
|
||||
# 因为如果索引里没有其中一个,会报错,另一个也不会删除
|
||||
local pkgs=
|
||||
|
Loading…
x
Reference in New Issue
Block a user