Package: live-config
Version: 5.20151121
Tags: patch

On our laptops the hardware clock is set to local time and not to utc.
We use the kernel command line parameter "utc=no" to indicate that, but
the hardware clock is nonetheless interpreted as being set to UTC and as
a consequence the system time is wrong.

I've found the reason to be an error in the 1120-util-linux component:

The generated file /etc/adjtime is wrong in case the hardware clock is
set to UTC. According to the hwclock manpage, the /etc/adjtime file
consists of three lines and the third line is explained to be:

"'UTC' or 'LOCAL'.  Tells whether the Hardware Clock is set to
Coordinated Universal Time or local time.  You can always override this
value with options on the hwclock command line."

So there is clearly a line missing that specifies "LOCAL" (the patch is
attached).

Regards,
Tom
diff -Naurp a/1120-util-linux b/1120-util-linux
--- a/1120-util-linux	2016-05-13 19:25:21.554483449 +0200
+++ b/1120-util-linux	2016-05-13 19:25:33.894482934 +0200
@@ -57,6 +57,7 @@ EOF
 cat > /etc/adjtime << EOF
 0.0 0 0.0
 0
+LOCAL
 EOF
 
 				;;

Reply via email to