opensuse: 修复未能开启 dhcpv4

https://github.com/canonical/cloud-init/pull/4591
This commit is contained in:
bin456789 2023-11-12 17:36:10 +08:00
parent 27606cf239
commit a86d1bb078
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -839,7 +839,7 @@ create_cloud_init_network_config() {
# ipv4
if is_dhcpv4; then
yq -i ".network.config[0].subnets += [{\"type\": \"dhcp\"}]" $ci_file
yq -i ".network.config[0].subnets += [{\"type\": \"dhcp4\"}]" $ci_file
elif is_staticv4; then
get_netconf_to ipv4_addr