diff --git a/trans.sh b/trans.sh index 0543e9b..e125b04 100644 --- a/trans.sh +++ b/trans.sh @@ -2184,9 +2184,6 @@ install_qcow_by_copy() { mkswap /dev/$xda*3 swapon /dev/$xda*3 - # cloud-init - download_cloud_init_config /os - modify_el_ol() { # resolv.conf cp /etc/resolv.conf /os/etc/resolv.conf @@ -2216,6 +2213,14 @@ install_qcow_by_copy() { chroot /os/ systemctl enable NetworkManager fi + # 修复 cloud-init 添加了 IPV*_FAILURE_FATAL + # 甲骨文 dhcp6 获取不到 IP 将视为 fatal,原有的 ipv4 地址也会被删除 + insert_into_file $ci_file after '^runcmd:' <