[rhel7-branch 2/9] Always write NTP servers to config files (#1197575)

wgwoods installerbot-noreply at redhat.com
Thu Jul 9 15:18:30 UTC 2015


From: Will Woods <wwoods at redhat.com>

If the user specified some NTP servers, write them to the configfiles,
regardless of whether the service(s) are actually enabled.

(Maybe you want to configure it now but turn it on later? I dunno, man.)

Resolves: RHBZ#1197575
---
 pyanaconda/kickstart.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index a8f14be..0b1ed25 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -1661,7 +1661,7 @@ def execute(self, *args):
         timezone.write_timezone_config(self, iutil.getSysroot())
 
         # write out NTP configuration (if set)
-        if not self.nontp and self.ntpservers:
+        if self.ntpservers:
             chronyd_out_path = os.path.normpath(iutil.getSysroot() + ntp.CHRONY_CONFIG_FILE)
             ntpd_out_path = os.path.normpath(iutil.getSysroot() + ntp.NTP_CONFIG_FILE)
             try:


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/679448aae817dbc009538f8df22293e742daa822


More information about the anaconda-patches mailing list