mirror of
https://github.com/bin456789/reinstall.git
synced 2026-10-03 22:17:46 +08:00
core: 移动部分文件到 deprecated 目录
This commit is contained in:
+6
-3
@@ -199,7 +199,7 @@ bash reinstall.sh anolis 7|8|23
|
||||
|
||||
<details>
|
||||
|
||||
<summary>Experimental Features</summary>
|
||||
<summary>Deprecated Features</summary>
|
||||
|
||||
Install Debian using a cloud image
|
||||
|
||||
@@ -212,16 +212,19 @@ bash reinstall.sh debian --ci
|
||||
Install CentOS, AlmaLinux, Rocky, Fedora using ISO
|
||||
|
||||
- Only supports machines with more than 2G of memory and dynamic IP.
|
||||
- Password is `123@@@`, and the SSH port is `22`; modifying them using parameters is not supported.
|
||||
- Username is `root`, Password is `123@@@`, and the SSH port is `22`; modifying them using parameters is not supported.
|
||||
|
||||
```bash
|
||||
bash reinstall.sh centos --installer
|
||||
bash reinstall.sh almalinux --installer
|
||||
bash reinstall.sh rocky --installer
|
||||
bash reinstall.sh fedora --installer
|
||||
```
|
||||
|
||||
Install Ubuntu using ISO
|
||||
|
||||
- Only supports machines with more than 1G of memory and dynamic IP.
|
||||
- Password is `123@@@`, and the SSH port is `22`; modifying them using parameters is not supported.
|
||||
- Username is `root`, Password is `123@@@`, and the SSH port is `22`; modifying them using parameters is not supported.
|
||||
|
||||
```bash
|
||||
bash reinstall.sh ubuntu --installer
|
||||
|
||||
@@ -199,7 +199,7 @@ bash reinstall.sh anolis 7|8|23
|
||||
|
||||
<details>
|
||||
|
||||
<summary>实验性功能</summary>
|
||||
<summary>已弃用的功能</summary>
|
||||
|
||||
云镜像安装 Debian
|
||||
|
||||
@@ -212,16 +212,19 @@ bash reinstall.sh debian --ci
|
||||
ISO 安装 CentOS, AlmaLinux, Rocky, Fedora
|
||||
|
||||
- 仅支持内存大于 2G 且为动态 IP 的机器
|
||||
- 密码 `123@@@`,SSH 端口 `22`,不支持用参数修改
|
||||
- 用户名 `root`,密码 `123@@@`,SSH 端口 `22`,不支持用参数修改
|
||||
|
||||
```bash
|
||||
bash reinstall.sh centos --installer
|
||||
bash reinstall.sh almalinux --installer
|
||||
bash reinstall.sh rocky --installer
|
||||
bash reinstall.sh fedora --installer
|
||||
```
|
||||
|
||||
ISO 安装 Ubuntu
|
||||
|
||||
- 仅支持内存大于 1G 且为动态 IP 的机器
|
||||
- 密码 `123@@@`,SSH 端口 `22`,不支持用参数修改
|
||||
- 用户名 `root`,密码 `123@@@`,SSH 端口 `22`,不支持用参数修改
|
||||
|
||||
```bash
|
||||
bash reinstall.sh ubuntu --installer
|
||||
|
||||
@@ -158,7 +158,7 @@ if [ -e /dev/disk/by-label/installer ]; then
|
||||
done
|
||||
|
||||
cd /
|
||||
curl -O "$confhome/resize.sh"
|
||||
curl -O "$confhome/deprecated/resize.sh"
|
||||
echo '@reboot root bash /resize.sh' >/etc/cron.d/resize
|
||||
fi
|
||||
%end
|
||||
@@ -28,7 +28,7 @@ autoinstall:
|
||||
# 生成分区信息
|
||||
xda=$(curl -L "$confhome/get-xda.sh" | sh -s)
|
||||
export xda
|
||||
curl -L "$confhome/ubuntu-storage-early.sh" | sh -s
|
||||
curl -L "$confhome/deprecated/ubuntu-storage-early.sh" | sh -s
|
||||
|
||||
# 要安装的版本
|
||||
# 有的镜像只有一个版本,没有 install-sources.yaml
|
||||
@@ -72,7 +72,7 @@ autoinstall:
|
||||
|
||||
# 下载合并分区脚本
|
||||
cd /target
|
||||
curl -LO $confhome/resize.sh
|
||||
curl -LO $confhome/deprecated/resize.sh
|
||||
|
||||
# 升级 cloud-init
|
||||
# curtin in-target --target=/target -- apt update
|
||||
+2
-2
@@ -1390,7 +1390,7 @@ Continue?
|
||||
set_osvar iso "$iso"
|
||||
|
||||
# ks
|
||||
set_osvar ks "$confhome/ubuntu.yaml"
|
||||
set_osvar ks "$confhome/deprecated/ubuntu.yaml"
|
||||
set_osvar minimal "$minimal"
|
||||
fi
|
||||
}
|
||||
@@ -1773,7 +1773,7 @@ Continue with DD?
|
||||
|
||||
set_osvar mirrorlist "$mirrorlist"
|
||||
|
||||
set_osvar ks "$confhome/redhat.cfg"
|
||||
set_osvar ks "$confhome/deprecated/redhat.cfg"
|
||||
set_osvar vmlinuz "${mirror}images/pxeboot/vmlinuz"
|
||||
set_osvar initrd "${mirror}images/pxeboot/initrd.img"
|
||||
set_osvar squashfs "${mirror}images/install.img"
|
||||
|
||||
@@ -3333,7 +3333,7 @@ download_cloud_init_config() {
|
||||
recognize_ipv6_types=$3
|
||||
|
||||
ci_file=$os_dir/etc/cloud/cloud.cfg.d/99_fallback.cfg
|
||||
download $confhome/cloud-init.yaml $ci_file
|
||||
download $confhome/deprecated/cloud-init.yaml $ci_file
|
||||
# 删除注释行,除了第一行
|
||||
sed -i '1!{/^[[:space:]]*#/d}' $ci_file
|
||||
|
||||
@@ -3803,7 +3803,7 @@ modify_linux() {
|
||||
for ethx in $(get_eths); do
|
||||
if is_staticv4 || is_staticv6; then
|
||||
fix_sh=cloud-init-fix-onlink.sh
|
||||
download "$confhome/$fix_sh" "$os_dir/$fix_sh"
|
||||
download "$confhome/deprecated/$fix_sh" "$os_dir/$fix_sh"
|
||||
insert_into_file "$ci_file" after '^runcmd:' <<EOF
|
||||
- bash "/$fix_sh" && rm -f "/$fix_sh"
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user