[PATCH] Do not automatically set UTC mode on kickstart installs.

Chris Lumens clumens at redhat.com
Thu Jul 25 16:37:20 UTC 2013


If the user wanted it, they would have asked for it.
---
 pyanaconda/timezone.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/timezone.py b/pyanaconda/timezone.py
index 5dca6fc..62632df 100644
--- a/pyanaconda/timezone.py
+++ b/pyanaconda/timezone.py
@@ -31,6 +31,7 @@ from collections import OrderedDict
 
 from pyanaconda import iutil
 from pyanaconda.constants import THREAD_STORAGE
+from pyanaconda.flags import flags
 from pyanaconda.threads import threadMgr
 from blivet import arch
 
@@ -69,7 +70,7 @@ def time_initialize(timezone, storage, bootloader):
         # nothing to do on s390 where hwclock doesn't exist
         return
 
-    if not timezone.isUtc:
+    if not timezone.isUtc and not flags.automatedInstall:
         # if set in the kickstart, no magic needed here
         threadMgr.wait(THREAD_STORAGE)
         ntfs_devs = filter(lambda dev: dev.format.name == "ntfs",
-- 
1.8.1.2



More information about the anaconda-patches mailing list