Blame SOURCES/0254-network-don-t-use-ifup-m.patch

712866
From 00c118a93a154d8ee7469331da2868db6c76fcd2 Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Thu, 2 Jul 2015 11:32:08 +0200
712866
Subject: [PATCH] network: don't use "ifup -m"
712866
712866
"ifup -m" was thought to be used by humans in the emergency shell.
712866
Using it programatically shows some other flaw in the execution logic.
712866
712866
Also, "ifup -m" was configuring the interface multiple times on "add"
712866
and "change" uevent, because the "$netif.did-setup" test was not
712866
executed.
712866
712866
(cherry picked from commit 7cca5efdcea4f1431331cf7663fc6fb48a365cdf)
712866
---
712866
 modules.d/40network/ifup.sh         | 3 ++-
712866
 modules.d/40network/net-genrules.sh | 1 -
712866
 2 files changed, 2 insertions(+), 2 deletions(-)
712866
712866
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
5c6c2a
index bd7db02c..3cff725c 100755
712866
--- a/modules.d/40network/ifup.sh
712866
+++ b/modules.d/40network/ifup.sh
712866
@@ -82,9 +82,10 @@ fi
712866
 # disable manual ifup while netroot is set for simplifying our logic
712866
 # in netroot case we prefer netroot to bringup $netif automaticlly
712866
 [ -n "$2" -a "$2" = "-m" ] && [ -z "$netroot" ] && manualup="$2"
712866
-[ -z "$netroot" ] && [ -z "$manualup" ] && exit 0
712866
+
712866
 if [ -n "$manualup" ]; then
712866
     >/tmp/net.$netif.manualup
712866
+    rm -f /tmp/net.${netif}.did-setup
712866
 else
712866
     [ -e /tmp/net.${netif}.did-setup ] && exit 0
712866
     [ -e /sys/class/net/$netif/address ] && \
712866
diff --git a/modules.d/40network/net-genrules.sh b/modules.d/40network/net-genrules.sh
5c6c2a
index 3664984f..750a4d7f 100755
712866
--- a/modules.d/40network/net-genrules.sh
712866
+++ b/modules.d/40network/net-genrules.sh
712866
@@ -55,7 +55,6 @@ command -v fix_bootif >/dev/null || . /lib/net-lib.sh
712866
     fi
712866
 
712866
     ifup='/sbin/ifup $env{INTERFACE}'
712866
-    [ -z "$netroot" ] && ifup="$ifup -m"
712866
 
712866
     runcmd="RUN+=\"/sbin/initqueue --name ifup-\$env{INTERFACE} --unique --onetime $ifup\""
712866