Blame SOURCES/0280-network-setup-gateway-after-setting-up-resolv.conf.patch

18971c
From 968c66b609f1e894d7522d622ddc95d14d49d66d Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Thu, 28 May 2015 19:44:55 +0200
18971c
Subject: [PATCH] network: setup gateway after setting up resolv.conf
18971c
18971c
If a daemon listens for route changes and wants to use the interface
18971c
afterwards, it should be able to resolve DNS
18971c
18971c
(cherry picked from commit 0b7bfacfeaf86c4001dc2ea46cecdc65c9cdfff1)
18971c
---
18971c
 modules.d/40network/net-lib.sh | 2 +-
18971c
 1 file changed, 1 insertion(+), 1 deletion(-)
18971c
18971c
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
18971c
index de5273ca..cfc06feb 100755
18971c
--- a/modules.d/40network/net-lib.sh
18971c
+++ b/modules.d/40network/net-lib.sh
18971c
@@ -96,13 +96,13 @@ setup_net() {
18971c
     [ -e "/tmp/net.ifaces" ] && read IFACES < /tmp/net.ifaces
18971c
     [ -z "$IFACES" ] && IFACES="$netif"
18971c
     # run the scripts written by ifup
18971c
-    [ -e /tmp/net.$netif.gw ]            && . /tmp/net.$netif.gw
18971c
     [ -e /tmp/net.$netif.hostname ]      && . /tmp/net.$netif.hostname
18971c
     [ -e /tmp/net.$netif.override ]      && . /tmp/net.$netif.override
18971c
     [ -e /tmp/dhclient.$netif.dhcpopts ] && . /tmp/dhclient.$netif.dhcpopts
18971c
     # set up resolv.conf
18971c
     [ -e /tmp/net.$netif.resolv.conf ] && \
18971c
         cp -f /tmp/net.$netif.resolv.conf /etc/resolv.conf
18971c
+    [ -e /tmp/net.$netif.gw ]            && . /tmp/net.$netif.gw
18971c
 
18971c
     # add static route
18971c
     for _p in $(getargs rd.route); do