core: 移动部分文件到 deprecated 目录

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