core: 从windows安装linux云镜像,暂时跳过cloud-init网络配置,不然网络不通

This commit is contained in:
bin456789 2023-09-16 17:11:53 +08:00
parent 5cbdc4d5ea
commit 6408c82311
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -589,6 +589,10 @@ create_cloud_init_network_config() {
ci_file=$1
get_netconf_to mac_addr
# TODO: 没在windows下获取网络信息,先跳过cloud-init网络不然网络不通
[ -z "$mac_addr" ] && return
get_netconf_to ipv4_addr
get_netconf_to ipv4_gateway
get_netconf_to ipv6_addr