]> git.proxmox.com Git - pve-container.git/commitdiff
Redhat: fix ipv4 dhcp only setup
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 23 Nov 2015 13:26:53 +0000 (14:26 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 26 Nov 2015 11:03:11 +0000 (12:03 +0100)
With ipv4 dhcp and no ipv6 configuration present $data is
empty and only $bootproto set to dhcp.

src/PVE/LXC/Setup/Redhat.pm

index 956e1da7843970fecdcb733a9f913fac4063e443..adc771d3b269d27003a0543669a525a51d473607 100644 (file)
@@ -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);