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