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

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