]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network: handle "ip=dhcp6" for all interfaces
authorHarald Hoyer <harald@redhat.com>
Tue, 25 Mar 2014 14:39:56 +0000 (15:39 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 25 Mar 2014 15:06:53 +0000 (16:06 +0100)
https://bugzilla.redhat.com/show_bug.cgi?id=1064365

modules.d/40network/ifup.sh

index 51b0d52872266ee9de25ac7edae2d3540395826b..ede018832fc2820382b1fca6c00147432cbd47f2 100755 (executable)
@@ -364,7 +364,12 @@ fi
 
 # no ip option directed at our interface?
 if [ ! -e /tmp/net.${netif}.up ]; then
-    do_dhcp -4
+    if getargs 'ip=dhcp6'; then
+        load_ipv6
+        do_dhcp -6
+    else
+        do_dhcp -4
+    fi
 fi
 
 exit 0