FS#31449 - [initscripts] System clock not set on boot

Attached to Project: Arch Linux
Opened by Florian Zeitz (Florob) - Friday, 07 September 2012, 00:24 GMT
Last edited by Dave Reisner (falconindy) - Friday, 07 September 2012, 00:39 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
I noticed that as of recently my system time was always 2h off after boot.
Since my TZ is Germany that means my system clock was set exactly to the time stored in the hardware clock.

After some investigation it seems to me that this is due to the following lines from /etc/rc.sysinit:
HWCLOCK_PARAMS="--systz"
case $HARDWARECLOCK in
"") ;;
UTC) HWCLOCK_PARAMS+=" --utc --noadjfile";;
localtime) HWCLOCK_PARAMS+=" --localtime --noadjfile";;
*) HWCLOCK_PARAMS="";;
esac

Which means the system clock is never actually set when HARDWARECLOCK is not defined in rc.conf.
However, setting this has been deprecated. I think the correct fix to this is to either remove the default case, or change it to:
*) HWCLOCK_PARAMS+="";;

Additional info:
* package version: 2012.08.3-2
This task depends upon

Closed by  Dave Reisner (falconindy)
Friday, 07 September 2012, 00:39 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#31416 
Comment by Dave Reisner (falconindy) - Friday, 07 September 2012, 00:26 GMT
Are you using testing?
Comment by Florian Zeitz (Florob) - Friday, 07 September 2012, 00:29 GMT
Yes, I am. Sorry for not having said that before.

Loading...