]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network/ifup.sh: do not default to dhcp, for interfaces without ip=...
authorHarald Hoyer <harald@redhat.com>
Tue, 29 May 2012 14:34:58 +0000 (16:34 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 7 Jun 2012 08:51:39 +0000 (10:51 +0200)
Don't try to be smarter than the admin configuring the machine.
Does also conflict with other methods trying to setup the interfaces,
like cmsifup.sh from the cms module.

modules.d/40network/ifup.sh

index c9516bb3d544c4c4f8ca00c1134a42c0c1c382a7..f7859687f9134b9132cd834d60aad08015d1130c 100755 (executable)
@@ -213,17 +213,6 @@ if [ "$netif" = "$vlanname" ] && [ ! -e /tmp/net.$vlanname.up ]; then
     ip link add dev "$vlanname" link "$phydevice" type vlan id "$(get_vid $vlanname; echo $?)"
 fi
 
-# No ip lines default to dhcp
-ip=$(getarg ip)
-
-if [ -z "$ip" ]; then
-    if [ "$netroot" = "dhcp6" ]; then
-        do_dhcp -6
-    else
-        do_dhcp -4
-    fi
-fi
-
 # Specific configuration, spin through the kernel command line
 # looking for ip= lines
 for p in $(getargs ip=); do