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

Vratislav Podzimek vpodzime at redhat.com
Fri Jul 26 08:36:50 UTC 2013


On Thu, 2013-07-25 at 12:37 -0400, Chris Lumens wrote:
> 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",
I've intentionally made it that way because I think that vast majority
of system uses UTC HW clock, but our '--utc' option of the 'timezone'
command is hardly discoverable. However, I see that without this change
there would be no way to force 'localtime' instead of UTC in kickstarts,
so ACK.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list