Blame SOURCES/0079-network-add-rd.bootif-0-to-ignore-BOOTIF.patch

712866
From 5183c9a58815970a5edc667cb6f531d7dace22ff Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Fri, 17 Jan 2014 14:37:55 +0100
712866
Subject: [PATCH] network: add rd.bootif=0 to ignore BOOTIF
712866
712866
https://bugzilla.redhat.com/show_bug.cgi?id=1044623
712866
---
712866
 dracut.cmdline.7.asc                 | 6 ++++++
712866
 modules.d/40network/parse-ip-opts.sh | 2 +-
712866
 2 files changed, 7 insertions(+), 1 deletion(-)
712866
712866
diff --git a/dracut.cmdline.7.asc b/dracut.cmdline.7.asc
5c6c2a
index 8ac53414..963ba074 100644
712866
--- a/dracut.cmdline.7.asc
712866
+++ b/dracut.cmdline.7.asc
712866
@@ -484,6 +484,12 @@ interface name. Better name it "bootnet" or "bluesocket".
712866
     specify network interface to use routing and netroot information from.
712866
     Required if multiple ip= lines are used.
712866
 
712866
+**BOOTIF=**__<MAC>__::
712866
+    specify network interface to use routing and netroot information from.
712866
+
712866
+**rd.bootif=0**::
712866
+    Disable BOOTIF parsing, which is provided by PXE
712866
+
712866
 **nameserver=**__<IP>__ [**nameserver=**__<IP>__ ...]::
712866
     specify nameserver(s) to use
712866
 
712866
diff --git a/modules.d/40network/parse-ip-opts.sh b/modules.d/40network/parse-ip-opts.sh
5c6c2a
index 4bf286d8..7e735741 100755
712866
--- a/modules.d/40network/parse-ip-opts.sh
712866
+++ b/modules.d/40network/parse-ip-opts.sh
712866
@@ -108,7 +108,7 @@ for p in $(getargs ip=); do
712866
 done
712866
 
712866
 # put BOOTIF in IFACES to make sure it comes up
712866
-if BOOTIF="$(getarg BOOTIF=)"; then
712866
+if getargbool 1 "rd.bootif" && BOOTIF="$(getarg BOOTIF=)"; then
712866
     BOOTDEV=$(fix_bootif $BOOTIF)
712866
     IFACES="$BOOTDEV $IFACES"
712866
 fi