|
|
712866 |
From a603e1f3a625a6f3257e6eb30bccc545c7c6f376 Mon Sep 17 00:00:00 2001
|
|
|
712866 |
From: Lukas Nykryn <lnykryn@redhat.com>
|
|
|
712866 |
Date: Tue, 7 Feb 2017 17:09:41 +0100
|
|
|
712866 |
Subject: [PATCH] network/ifup: write override file before dhcp_do
|
|
|
712866 |
|
|
|
712866 |
Commit cf376023e6d0d4abd9816fa954bb917fc2557713 moved writing .resolv.conf and .override
|
|
|
712866 |
after dhcp_do, because dhcp_do was overwriting .resolv.conf. But .override does not have
|
|
|
712866 |
such problem and on the contrary dhcp_do reads .override file if it is present. So let\'s
|
|
|
712866 |
move it back.
|
|
|
712866 |
|
|
|
712866 |
https://bugzilla.redhat.com/show_bug.cgi?id=1415004
|
|
|
712866 |
---
|
|
|
712866 |
modules.d/40network/ifup.sh | 10 +++++-----
|
|
|
712866 |
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
712866 |
|
|
|
712866 |
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
|
|
|
5c6c2a |
index d7503c7f..b5c9ad2a 100755
|
|
|
712866 |
--- a/modules.d/40network/ifup.sh
|
|
|
712866 |
+++ b/modules.d/40network/ifup.sh
|
|
|
712866 |
@@ -374,6 +374,11 @@ for p in $(getargs ip=); do
|
|
|
712866 |
[ "$use_bridge" != 'true' ] && \
|
|
|
712866 |
[ "$use_vlan" != 'true' ] && continue
|
|
|
712866 |
|
|
|
712866 |
+ # Store config for later use
|
|
|
712866 |
+ for i in ip srv gw mask hostname macaddr mtu dns1 dns2; do
|
|
|
712866 |
+ eval '[ "$'$i'" ] && echo '$i'="$'$i'"'
|
|
|
712866 |
+ done > /tmp/net.$netif.override
|
|
|
712866 |
+
|
|
|
712866 |
for autoopt in $(str_replace "$autoconf" "," " "); do
|
|
|
712866 |
case $autoopt in
|
|
|
712866 |
dhcp|on|any)
|
|
|
712866 |
@@ -395,11 +400,6 @@ for p in $(getargs ip=); do
|
|
|
712866 |
echo nameserver $s >> /tmp/net.$netif.resolv.conf
|
|
|
712866 |
done
|
|
|
712866 |
|
|
|
712866 |
- # Store config for later use
|
|
|
712866 |
- for i in ip srv gw mask hostname macaddr dns1 dns2 mtu; do
|
|
|
712866 |
- eval '[ "$'$i'" ] && echo '$i'="$'$i'"'
|
|
|
712866 |
- done > /tmp/net.$netif.override
|
|
|
712866 |
-
|
|
|
712866 |
if [ $ret -eq 0 ]; then
|
|
|
712866 |
> /tmp/net.${netif}.up
|
|
|
712866 |
|