Am 11.07.2011 07:15, schrieb Michael Biebl:

> Until this is fixed, you can do two things:
> a) Remove /etc/adjtime. This way only util-linux via hwclock-set will apply 
> the
> localtime offset
> b) Modify /lib/udev/hwclock-set by hand and add
>   if   [ -e /sys/fs/cgroup/systemd ]; then
>     exit 0
>   fi
> at the top
> 

A third option would be, to disable setting hwclock from systemd for the time
being until util-linux has been updated.

Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
From bbc40bfd9f5802cde230c68a65a56344cf1770a9 Mon Sep 17 00:00:00 2001
From: Michael Biebl <bi...@debian.org>
Date: Mon, 11 Jul 2011 08:13:39 +0200
Subject: [PATCH] Disable hwclock for the time being

Otherwise we might end up running hwclock twice.
---
 src/main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/main.c b/src/main.c
index 68328b7..fc2afaa 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1050,12 +1050,14 @@ int main(int argc, char *argv[]) {
                 if (label_init() < 0)
                         goto finish;
 
+#if 0
                 if (hwclock_is_localtime()) {
                         int min;
 
                         min = hwclock_apply_localtime_delta();
                         log_info("Hwclock configured in localtime, applying delta of %i minutes to system time", min);
                 }
+#endif
         } else {
                 arg_running_as = MANAGER_USER;
                 log_set_target(LOG_TARGET_CONSOLE);
-- 
1.7.5.4

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to