network: reintroduce rd.neednet

rd.neednet is used by anaconda and the network interfaces cannot
be known in advance.
master
Harald Hoyer 2012-08-21 14:47:14 +02:00
parent bdf1f472b4
commit 48dba7f9ac
2 changed files with 6 additions and 1 deletions

View File

@ -384,6 +384,9 @@ interface name. Better name it "bootnet" or "bluesocket".
**biosdevname=0**::
boolean, turn off biosdevname network interface renaming

**rd.neednet=1**::
boolean, bring up network even without netroot set

**vlan=_<vlanname>_:_<phydevice>_**::
Setup vlan device named <vlanname> on <phydeivce>.
We support the four styles of vlan names: VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),

View File

@ -15,7 +15,9 @@ fix_bootif() {
}

# Don't continue if we don't need network
[ -z "$netroot" ] && ! [ -e "/tmp/net.ifaces" ] && return;
if [ -z "$netroot" ] && [ ! -e "/tmp/net.ifaces" ] && ! getargbool 0 rd.neednet >/dev/null; then
return
fi

# Write udev rules
{