[master] Patches for HW clock saving and restoring

Vratislav Podzimek vpodzime at redhat.com
Wed Sep 19 09:52:46 UTC 2012


PATCH 1/3 does only a little and rather cosmetic change and can be omitted.

PATCH 2/3 adds a thread that waits for storage initialization, then searches for
ntfs partitions and asks bootloader if any of them are bootable. If yes, it sets
ksdata.timezone.isUtc to False, otherwise to True. Then it restores system time
from HW clock using the guess about UTC. The GUI part waiting for this thread to
be finished is more or less copied from the StorageSpoke.

PATCH 3/3 adds a code for saving system time to hardware clock as a first step
after the "point of no return", i.e. before we do any partitioning and start
package installation. This cannot be part of the post-installation steps,
because otherwise user could e.g. end up with partitions and data created in
future.

Unfortunately, I cannot test the dual boot configuration with existing bootable
ntfs partition.

Vratislav Podzimek (3):
  Return bool value from the GRUB.has_windows method
  Set system time from HW clock and guess if it is UTC
  Save system time to hardware clock

 anaconda                                   | 11 ++++++++-
 pyanaconda/bootloader.py                   |  2 +-
 pyanaconda/install.py                      | 18 ++++++++++++++
 pyanaconda/timezone.py                     | 39 ++++++++++++++++++++++++++++++
 pyanaconda/ui/gui/spokes/datetime_spoke.py | 25 ++++++++++++++++++-
 5 files changed, 92 insertions(+), 3 deletions(-)

-- 
1.7.11.4



More information about the anaconda-patches mailing list