[pve-devel] [PATCH pve-container] Redhat: fix ipv4 dhcp only setup
Wolfgang Bumiller
w.bumiller at proxmox.com
Mon Nov 23 14:26:53 CET 2015
With ipv4 dhcp and no ipv6 configuration present $data is
empty and only $bootproto set to dhcp.
---
src/PVE/LXC/Setup/Redhat.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/LXC/Setup/Redhat.pm b/src/PVE/LXC/Setup/Redhat.pm
index 956e1da..adc771d 100644
--- a/src/PVE/LXC/Setup/Redhat.pm
+++ b/src/PVE/LXC/Setup/Redhat.pm
@@ -242,7 +242,7 @@ sub setup_network {
}
}
- next unless $data;
+ next unless $data || $bootproto;
$header .= "BOOTPROTO=$bootproto\n";
$self->ct_file_set_contents($filename, $header . $data);
--
2.1.4
More information about the pve-devel
mailing list