Blame SOURCES/0460-network-parse-ip-opts-be-more-liberal-to-multiple-ip.patch

a0a3b4
From c87d489ca619c719323da446076ab67dc091960d Mon Sep 17 00:00:00 2001
a0a3b4
From: Harald Hoyer <harald@redhat.com>
a0a3b4
Date: Tue, 6 Sep 2016 15:18:24 +0200
a0a3b4
Subject: [PATCH] network/parse-ip-opts: be more liberal to multiple ip=
a0a3b4
 options
a0a3b4
a0a3b4
Do not bail out early.
a0a3b4
a0a3b4
https://bugzilla.redhat.com/show_bug.cgi?id=1304069
a0a3b4
---
a0a3b4
 modules.d/40network/parse-ip-opts.sh | 6 +++---
a0a3b4
 1 file changed, 3 insertions(+), 3 deletions(-)
a0a3b4
a0a3b4
diff --git a/modules.d/40network/parse-ip-opts.sh b/modules.d/40network/parse-ip-opts.sh
a0a3b4
index 3c96204..68afe91 100755
a0a3b4
--- a/modules.d/40network/parse-ip-opts.sh
a0a3b4
+++ b/modules.d/40network/parse-ip-opts.sh
a0a3b4
@@ -38,7 +38,7 @@ unset count
a0a3b4
 # If needed, check if bootdev= contains anything usable
a0a3b4
 BOOTDEV=$(getarg bootdev=)
a0a3b4
 
a0a3b4
-if [ -n "$NEEDBOOTDEV" ] && getargbool 1 rd.neednet; then
a0a3b4
+if [ -n "$NEEDBOOTDEV" ] && ! getargbool 0 rd.neednet; then
a0a3b4
     #[ -z "$BOOTDEV" ] && warn "Please supply bootdev argument for multiple ip= lines"
a0a3b4
     echo "rd.neednet=1" > /etc/cmdline.d/dracut-neednet.conf
a0a3b4
     info "Multiple ip= arguments: assuming rd.neednet=1"
a0a3b4
@@ -79,8 +79,8 @@ for p in $(getargs ip=); do
a0a3b4
                 ;;
a0a3b4
             auto6);;
a0a3b4
             dhcp|dhcp6|on|any) \
a0a3b4
-                [ -n "$NEEDBOOTDEV" ] && [ -z "$dev" ] && \
a0a3b4
-                    die "Sorry, 'ip=$p' does not make sense for multiple interface configurations"
a0a3b4
+                #[ -n "$NEEDBOOTDEV" ] && [ -z "$dev" ] && \
a0a3b4
+                #    die "Sorry, 'ip=$p' does not make sense for multiple interface configurations"
a0a3b4
                 [ -n "$ip" ] && \
a0a3b4
                     die "For argument 'ip=$p'\nSorry, setting client-ip does not make sense for '$autoopt'"
a0a3b4
                 ;;