[PATCH] Do not write SEARCH line to ifcfg-DEVICE file (#474858)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We have been writing the SEARCH= line to ifcfg files in network.py
for a while, but it only contains the domain we extract from the
FQDN.  For users wanting to use the network service over NM, this
presents a problem because the SEARCH line present in the ifcfg
file will always override the information from the DHCP server.
---
 network.py |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/network.py b/network.py
index 7becba3..b5ecad4 100644
--- a/network.py
+++ b/network.py
@@ -582,10 +582,6 @@ class Network:
             if dev.get('MTU') and dev.get('MTU') != 0:
                 f.write("MTU=%s\n" % dev.get('MTU'))
 
-            if self.domains != ['localdomain'] and self.domains:
-                searchLine = string.joinfields(self.domains, ' ')
-                f.write("SEARCH=\"%s\"\n" % (searchLine,))
-
             # tell NetworkManager not to touch any interfaces used during
             # installation when / is on a network device. Ideally we would only
             # tell NM not to touch the interface(s) actually used for /, but we
-- 
1.6.0.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux