diff --git a/cloud-init.yaml b/cloud-init.yaml index 0baa701..faacaee 100644 --- a/cloud-init.yaml +++ b/cloud-init.yaml @@ -1,5 +1,5 @@ #cloud-config -datasource_list: [NoCloud] +datasource_list: [None] timezone: Asia/Shanghai disable_root: false ssh_pwauth: true diff --git a/trans.sh b/trans.sh index 9d454ef..b9ff7ec 100644 --- a/trans.sh +++ b/trans.sh @@ -895,7 +895,7 @@ create_cloud_init_network_config() { download_cloud_init_config() { os_dir=$1 - ci_file=$os_dir/etc/cloud/cloud.cfg.d/99_nocloud.cfg + ci_file=$os_dir/etc/cloud/cloud.cfg.d/99_fallback.cfg download $confhome/cloud-init.yaml $ci_file # 删除注释行,除了第一行 sed -i '1!{/^[[:space:]]*#/d}' $ci_file