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

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