mirror of
https://github.com/bin456789/reinstall.git
synced 2025-12-10 15:37:43 +08:00
opensuse: 修复未能开启 dhcpv4
https://github.com/canonical/cloud-init/pull/4591
This commit is contained in:
2
trans.sh
2
trans.sh
@ -839,7 +839,7 @@ create_cloud_init_network_config() {
|
|||||||
|
|
||||||
# ipv4
|
# ipv4
|
||||||
if is_dhcpv4; then
|
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
|
elif is_staticv4; then
|
||||||
get_netconf_to ipv4_addr
|
get_netconf_to ipv4_addr
|
||||||
|
|||||||
Reference in New Issue
Block a user