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

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