From 1db211287c86c908a164962b1f85fa76c973bcdf Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 23 Nov 2015 14:26:53 +0100 Subject: [PATCH] Redhat: fix ipv4 dhcp only setup 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.39.2