]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network: add rd.bootif=0 to ignore BOOTIF
authorHarald Hoyer <harald@redhat.com>
Fri, 17 Jan 2014 13:37:55 +0000 (14:37 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 17 Jan 2014 13:52:01 +0000 (14:52 +0100)
https://bugzilla.redhat.com/show_bug.cgi?id=1044623

dracut.cmdline.7.asc
modules.d/40network/parse-ip-opts.sh

index 8ac53414a83aebccae7050b1454fc3a320580e59..963ba0743e164a0527d35745d0e5f785b3314cac 100644 (file)
@@ -484,6 +484,12 @@ interface name. Better name it "bootnet" or "bluesocket".
     specify network interface to use routing and netroot information from.
     Required if multiple ip= lines are used.
 
+**BOOTIF=**__<MAC>__::
+    specify network interface to use routing and netroot information from.
+
+**rd.bootif=0**::
+    Disable BOOTIF parsing, which is provided by PXE
+
 **nameserver=**__<IP>__ [**nameserver=**__<IP>__ ...]::
     specify nameserver(s) to use
 
index 4bf286d8493f774c4769f66bfee129e65ae5babe..7e735741a4ef7d0674bfc55d1d436339be755d45 100755 (executable)
@@ -108,7 +108,7 @@ for p in $(getargs ip=); do
 done
 
 # put BOOTIF in IFACES to make sure it comes up
-if BOOTIF="$(getarg BOOTIF=)"; then
+if getargbool 1 "rd.bootif" && BOOTIF="$(getarg BOOTIF=)"; then
     BOOTDEV=$(fix_bootif $BOOTIF)
     IFACES="$BOOTDEV $IFACES"
 fi