From 6408c8231125a08871a63333269025bcbd7d6e4c Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sat, 16 Sep 2023 17:11:53 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E4=BB=8Ewindows=E5=AE=89=E8=A3=85linux?= =?UTF-8?q?=E4=BA=91=E9=95=9C=E5=83=8F=EF=BC=8C=E6=9A=82=E6=97=B6=E8=B7=B3?= =?UTF-8?q?=E8=BF=87cloud-init=E7=BD=91=E7=BB=9C=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E7=84=B6=E7=BD=91=E7=BB=9C=E4=B8=8D=E9=80=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trans.sh b/trans.sh index f3a5f9f..9c344c4 100644 --- a/trans.sh +++ b/trans.sh @@ -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