mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 20:39:14 +08:00
fodora: 添加 41
This commit is contained in:
parent
8d1ee541e3
commit
409b7695db
10
README.en.md
10
README.en.md
@ -41,7 +41,7 @@ The system requirements for the target system are as follows:
|
||||
| <img width="16" height="16" src="https://www.redhat.com/favicon.ico" /> RedHat <img width="16" height="16" src="https://almalinux.org/fav/favicon.ico" /> Alma <img width="16" height="16" src="https://rockylinux.org/favicon.png" /> Rocky | 8, 9 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://opencloudos.org/qq.ico" /> OpenCloudOS | 8, 9 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://www.oracle.com/asset/web/favicons/favicon-32.png" /> Oracle | 7, 8, 9 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://fedoraproject.org/favicon.ico" /> Fedora | 39, 40 | 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, 22.03, 24.03 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://static.opensuse.org/favicon.ico" /> openSUSE | 15.5, 15.6, Tumbleweed (Rolling) | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://nixos.org/_astro/flake-blue.Bf2X2kC4_Z1yqDoT.svg" /> NixOS | 24.05 | 512 MB | 5 GB |
|
||||
@ -140,7 +140,7 @@ bash reinstall.sh centos 9
|
||||
redhat 8|9 --img='http://xxx.com/xxx.qcow2'
|
||||
opencloudos 8|9
|
||||
oracle 7|8|9
|
||||
fedora 39|40
|
||||
fedora 40|41
|
||||
nixos 24.05
|
||||
debian 9|10|11|12
|
||||
openeuler 20.03|22.03|24.03
|
||||
@ -266,7 +266,7 @@ bash reinstall.sh netboot.xyz
|
||||
#### Method 1: Let the Script Automatically Search for ISO (Recommended)
|
||||
|
||||
- Typically, Windows releases new official ISOs every month, which integrate the latest system patches, avoiding the need to download a bunch of updates right after installation.
|
||||
- The script will search for ISOs from <https://massgrave.dev/genuine-installation-media.html>, a site that collects monthly released ISOs, ensuring that the ISOs found by the script are the official latest versions.
|
||||
- The script will search for ISOs from <https://massgrave.dev/genuine-installation-media>, a site that collects monthly released ISOs, ensuring that the ISOs found by the script are the official latest versions.
|
||||
- Systems marked with \* do not support automatic ISO searching.
|
||||
|
||||
```bash
|
||||
@ -336,13 +336,13 @@ bash reinstall.sh windows \
|
||||
|
||||
<summary>The following website provides ISO links.</summary>
|
||||
|
||||
- <https://massgrave.dev/genuine-installation-media.html> (Recommended, iso sourced from official channels, updated monthly, includes the latest patches)
|
||||
- <https://massgrave.dev/genuine-installation-media> (Recommended, iso sourced from official channels, updated monthly, includes the latest patches)
|
||||
- <https://www.microsoft.com/software-download/windows10> (Need to open it with a non-Windows User-Agent)
|
||||
- <https://www.microsoft.com/software-download/windows11>
|
||||
- <https://www.microsoft.com/software-download/windowsinsiderpreviewiso> (Preview)
|
||||
- <https://www.microsoft.com/evalcenter/download-windows-10-enterprise>
|
||||
- <https://www.microsoft.com/evalcenter/download-windows-11-enterprise>
|
||||
- <https://www.microsoft.com/evalcenter/download-windows-11-iot-enterprise-ltsc>
|
||||
- <https://www.microsoft.com/evalcenter/download-windows-11-iot-enterprise-ltsc-eval>
|
||||
- <https://www.microsoft.com/evalcenter/download-windows-server-2012-r2>
|
||||
- <https://www.microsoft.com/evalcenter/download-windows-server-2016>
|
||||
- <https://www.microsoft.com/evalcenter/download-windows-server-2019>
|
||||
|
10
README.md
10
README.md
@ -41,7 +41,7 @@
|
||||
| <img width="16" height="16" src="https://www.redhat.com/favicon.ico" /> RedHat <img width="16" height="16" src="https://almalinux.org/fav/favicon.ico" /> Alma <img width="16" height="16" src="https://rockylinux.org/favicon.png" /> Rocky | 8, 9 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://opencloudos.org/qq.ico" /> OpenCloudOS | 8, 9 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://www.oracle.com/asset/web/favicons/favicon-32.png" /> Oracle | 7, 8, 9 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://fedoraproject.org/favicon.ico" /> Fedora | 39, 40 | 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, 22.03, 24.03 | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://static.opensuse.org/favicon.ico" /> openSUSE | 15.5, 15.6, Tumbleweed (滚动) | 512 MB \* | 5 GB |
|
||||
| <img width="16" height="16" src="https://nixos.org/_astro/flake-blue.Bf2X2kC4_Z1yqDoT.svg" /> NixOS | 24.05 | 512 MB | 5 GB |
|
||||
@ -140,7 +140,7 @@ bash reinstall.sh centos 9
|
||||
redhat 8|9 --img='http://xxx.com/xxx.qcow2'
|
||||
opencloudos 8|9
|
||||
oracle 7|8|9
|
||||
fedora 39|40
|
||||
fedora 40|41
|
||||
nixos 24.05
|
||||
debian 9|10|11|12
|
||||
openeuler 20.03|22.03|24.03
|
||||
@ -266,7 +266,7 @@ bash reinstall.sh netboot.xyz
|
||||
#### 方法 1: 让脚本自动查找 ISO (推荐)
|
||||
|
||||
- 通常情况下 Windows 每个月都会发布新的官方 ISO,集成了最新的系统补丁,避免了刚安装好系统就要下载一堆补丁
|
||||
- 脚本会从 <https://massgrave.dev/genuine-installation-media.html> 查找 ISO,该网站收录了每月发布的 ISO,因此脚本查找到的 ISO 都是官方最新版
|
||||
- 脚本会从 <https://massgrave.dev/genuine-installation-media> 查找 ISO,该网站收录了每月发布的 ISO,因此脚本查找到的 ISO 都是官方最新版
|
||||
- 上面带 \* 的系统不支持自动查找 ISO
|
||||
|
||||
```bash
|
||||
@ -336,13 +336,13 @@ bash reinstall.sh windows \
|
||||
|
||||
<summary>以下网站可找到 ISO 链接</summary>
|
||||
|
||||
- <https://massgrave.dev/genuine-installation-media.html> (推荐,iso 来自官方,每月更新,包含最新补丁)
|
||||
- <https://massgrave.dev/genuine-installation-media> (推荐,iso 来自官方,每月更新,包含最新补丁)
|
||||
- <https://www.microsoft.com/software-download/windows10> (需用非 Windows User-Agent 打开)
|
||||
- <https://www.microsoft.com/software-download/windows11>
|
||||
- <https://www.microsoft.com/software-download/windowsinsiderpreviewiso> (预览版)
|
||||
- <https://www.microsoft.com/evalcenter/download-windows-10-enterprise>
|
||||
- <https://www.microsoft.com/evalcenter/download-windows-11-enterprise>
|
||||
- <https://www.microsoft.com/evalcenter/download-windows-11-iot-enterprise-ltsc>
|
||||
- <https://www.microsoft.com/evalcenter/download-windows-11-iot-enterprise-ltsc-eval>
|
||||
- <https://www.microsoft.com/evalcenter/download-windows-server-2012-r2>
|
||||
- <https://www.microsoft.com/evalcenter/download-windows-server-2016>
|
||||
- <https://www.microsoft.com/evalcenter/download-windows-server-2019>
|
||||
|
16
reinstall.sh
16
reinstall.sh
@ -45,7 +45,7 @@ Usage: $reinstall_____ centos 9
|
||||
redhat 8|9 --img='http://xxx.com/xxx.qcow2'
|
||||
opencloudos 8|9
|
||||
oracle 7|8|9
|
||||
fedora 39|40
|
||||
fedora 40|41
|
||||
nixos 24.05
|
||||
debian 9|10|11|12
|
||||
openeuler 20.03|22.03|24.03
|
||||
@ -773,7 +773,7 @@ get_windows_iso_links() {
|
||||
label_vlsc=$(get_label_vlsc)
|
||||
page=$(get_page)
|
||||
|
||||
page_url=https://massgrave.dev/windows_${page}_links.html
|
||||
page_url=https://massgrave.dev/windows_${page}_links
|
||||
|
||||
info "Find windows iso"
|
||||
echo "Version: $version"
|
||||
@ -787,7 +787,7 @@ get_windows_iso_links() {
|
||||
error_and_exit "Not support find this iso. Check --image-name or set --iso manually."
|
||||
fi
|
||||
|
||||
curl -L "$page_url" | grep -ioP 'https://.*?.iso' >$tmp/win.list
|
||||
curl -L "$page_url" | grep -ioP 'https://.*?.(iso|img)' >$tmp/win.list
|
||||
|
||||
# 如果不是 ltsc ,应该先去除 ltsc 链接,否则最终链接有 ltsc 的
|
||||
# 例如查找 windows 10 iot enterprise,会得到
|
||||
@ -821,14 +821,14 @@ get_windows_iso_link() {
|
||||
regex+="${i}_"
|
||||
fi
|
||||
done
|
||||
regex+=".*${arch_win}.*.iso"
|
||||
regex+=".*${arch_win}.*.(iso|img)"
|
||||
regexs+=("$regex")
|
||||
done
|
||||
fi
|
||||
|
||||
# vlsc
|
||||
if [ -n "$label_vlsc" ]; then
|
||||
regex="sw_dvd9_win_${label_vlsc}_${version}.*${arch_win}_${full_lang}.*.iso"
|
||||
regex="sw_dvd[59]_win_${label_vlsc}_${version}.*${arch_win}_${full_lang}.*.(iso|img)"
|
||||
regexs+=("$regex")
|
||||
fi
|
||||
|
||||
@ -1161,7 +1161,7 @@ Continue?
|
||||
if is_in_china; then
|
||||
mirror=https://mirror.sjtu.edu.cn/opensuse
|
||||
else
|
||||
mirror=https://provo-mirror.opensuse.org
|
||||
mirror=https://mirror.fcix.net/opensuse
|
||||
fi
|
||||
|
||||
if [ "$releasever" = tumbleweed ]; then
|
||||
@ -1446,7 +1446,7 @@ verify_os_name() {
|
||||
'redhat 8|9' \
|
||||
'opencloudos 8|9' \
|
||||
'oracle 7|8|9' \
|
||||
'fedora 39|40' \
|
||||
'fedora 40|41' \
|
||||
'nixos 24.05' \
|
||||
'debian 9|10|11|12' \
|
||||
'openeuler 20.03|22.03|24.03' \
|
||||
@ -2334,7 +2334,7 @@ install_grub_linux_efi() {
|
||||
if is_in_china; then
|
||||
mirror=https://mirror.sjtu.edu.cn/opensuse
|
||||
else
|
||||
mirror=https://provo-mirror.opensuse.org
|
||||
mirror=https://mirror.fcix.net/opensuse
|
||||
fi
|
||||
|
||||
[ "$basearch" = x86_64 ] && ports='' || ports=/ports/$basearch
|
||||
|
Loading…
x
Reference in New Issue
Block a user