|
|
ab0e4d |
From 605b45361ff9336bb9ac2526b5f7d50e7e33e99f Mon Sep 17 00:00:00 2001
|
|
|
ab0e4d |
From: Jan Macku <jamacku@redhat.com>
|
|
|
ab0e4d |
Date: Fri, 1 Nov 2019 14:58:56 +0100
|
|
|
ab0e4d |
Subject: [PATCH] Write dns values passed by ip argument to ifcfg-* files
|
|
|
ab0e4d |
|
|
|
ab0e4d |
(cherry picked from commit cb86c560b0da465e06c18df12308cb3f30fa4803)
|
|
|
ab0e4d |
|
|
|
ab0e4d |
Resolves: #1767100
|
|
|
ab0e4d |
---
|
|
|
ab0e4d |
modules.d/45ifcfg/write-ifcfg.sh | 2 +-
|
|
|
ab0e4d |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
ab0e4d |
|
|
|
ab0e4d |
diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh
|
|
|
ab0e4d |
index 3bf847a5..abd111fc 100755
|
|
|
ab0e4d |
--- a/modules.d/45ifcfg/write-ifcfg.sh
|
|
|
ab0e4d |
+++ b/modules.d/45ifcfg/write-ifcfg.sh
|
|
|
ab0e4d |
@@ -270,7 +270,7 @@ for netup in /tmp/net.*.did-setup ; do
|
|
|
ab0e4d |
done
|
|
|
ab0e4d |
fi
|
|
|
ab0e4d |
i=1
|
|
|
ab0e4d |
- for ns in $(getargs nameserver); do
|
|
|
ab0e4d |
+ for ns in $(getargs nameserver) $dns1 $dns2; do
|
|
|
ab0e4d |
echo "DNS${i}=\"${ns}\"" >> /tmp/ifcfg/ifcfg-$netif
|
|
|
ab0e4d |
i=$((i+1))
|
|
|
ab0e4d |
done
|
|
|
ab0e4d |
|