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
+2 -2
View File
@@ -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