[PATCH 1/2] Remove the last usage of the system-config-date in Anaconda

Chris Lumens clumens at redhat.com
Wed Aug 22 15:14:07 UTC 2012


>  class Timezone(commands.timezone.F18_Timezone):
>      def execute(self):
> -        # check validity
> -        tab = zonetab.ZoneTab()
> -        if self.timezone not in (entry.tz.replace(' ','_') for entry in
> -                                 tab.getEntries()):
> +        if not localization.is_valid_timezone(self.timezone):
>              log.warning("Timezone %s set in kickstart is not valid." % (self.timezone,))
> -
> -        self.anaconda.timezone.setTimezoneInfo(self.timezone, self.isUtc)
> -
>          chronyd_conf_path = os.path.normpath(ROOT_PATH + ntp.NTP_CONFIG_FILE)
>          ntp.save_servers_to_config(self.ntpservers,
>                                     conf_file_path=chronyd_conf_path)

Note that the timezone kickstart command doesn't even do anything right
now.  You can tell this because the execute method doesn't take the
right set of arguments.  This will need to be fixed before F18.

- Chris


More information about the anaconda-patches mailing list