[Bug 681109] New: /etc/init.d/boot.clock: SYSTZ is not set properly under some conditions
https://bugzilla.novell.com/show_bug.cgi?id=681109 https://bugzilla.novell.com/show_bug.cgi?id=681109#c0 Summary: /etc/init.d/boot.clock: SYSTZ is not set properly under some conditions Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: All OS/Version: SuSE Other Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: sbrabec@novell.com QAContact: qa@suse.de Found By: --- Blocker: --- FAT file systems are mounted with local time zone by default. It means that proper file time information needs SYSTZ kernel variable set correctly. There are two utilities to do it: hwclock --systz and warpclock. /etc/init.d/boot.clock uses them both, but only sometimes. SYSTZ needs to be set always. Actually, on my system SYSTZ remains to set incorrectly and all times on FAT filesystem are shifted one hour forward. Variables from my /etc/sysconfig/clock: HWCLOCK="-u" SYSTOHC="yes" TIMEZONE="Europe/Prague" DEFAULT_TIMEZONE="US/Eastern" File /etc/adjtime exists and contains: 0.0 0 0.0 0 UTC sh -x /etc/init.d/boot.clock start confirms, that hwclock --systz nor warpclock are called: + . /etc/rc.status ++ /bin/mountpoint -q /sys/fs/cgroup/systemd ++ LC_ALL=POSIX ++ export LC_ALL ++ trap rc_lc SIGWINCH ++ test -n '' -a -n '' ++ rc_lc ++ test -n '' +++ stty size ++ set -- 73 224 ++ LINES=73 ++ COLUMNS=224 ++ test 73 -eq 0 -o 224 -eq 0 ++ export LINES COLUMNS ++ case ":$PATH:" in ++ test -t 1 -a xterm '!=' raw -a xterm '!=' dumb +++ echo -en '\033' ++ esc=$'\E' ++ extd='' ++ warn='' ++ done='' ++ attn='' +++ echo -en '\017' ++ norm='' +++ echo -en '\015 ' ++ stat=' ' ++ rc_done=' done' ++ rc_running=' running' ++ rc_failed=' failed' ++ rc_missed=' missing' ++ rc_skipped=' skipped' ++ rc_dead=' dead' ++ rc_unused=' unused' ++ rc_unknown=' failed'' ++ rc_reset=''p=' ++ rc_save='' ++ rc_restor'=' ++ _rc_service=/etc/init.d/boot.clock ++ _rc_status=0 ++ _rc_status_all=0 ++ _rc_todo=start ++ test start = status ++ test -n start ++ cmdline= + . /etc/sysconfig/clock ++ HWCLOCK=-u ++ SYSTOHC=yes ++ TIMEZONE=Europe/Prague ++ DEFAULT_TIMEZONE=US/Eastern + USE_ADJFILE=no + case "$HWCLOCK" in + USE_ADJFILE=yes + test yes '!=' yes + USE_HWCLOCK=yes + case "$(uname -i)" in ++ uname -i + test -r /proc/xen/capabilities + ELEVENMIN_MODE=no ++ adjtimex --print ++ sed -rn '/^[[:blank:]]*status:/{ s/[^[:digit:]]*([[:digit:]]+)/\1/p; }' + typeset -i STA_CLOCK=8257 + test 64 -eq 0 + rc_reset + _rc_status=0 + _rc_status_all=0 + rc_check + _rc_status_ret=0 + test 0 -eq 0 + test 0 -eq 0 + return 0 + return 0 + case "$1" in + test -n '' + test yes '!=' yes + test no = yes + echo -n 'Set System Time to the current Hardware Clock' Set System Time to the current Hardware Clock+ test yes = yes + test '!' -s /etc/adjtime + test -w /etc/adjtime + adjfile_thirdline + rtc_rule /sbin/hwclock -u --adjust + local temprules=/dev/.udev/rules.d + local uevseqnum=/sys/kernel/uevent_seqnum + local rule=/dev/.udev/rules.d/95-rtc-cmos.rules + local -i start=0 end=0 + test -e /dev/rtc + /sbin/hwclock -u --adjust + return 0 + rc_status -v + rc_check + _rc_status_ret=0 + test 0 -eq 0 + test 0 -eq 0 + return 0 + test 0 -gt 7 + _rc_status_ret=0 + case "$_rc_todo" in + local i + for i in '"$@"' + case "$i" in + local vrt= + local out=1 + local opt=en + test -n '' + opt=e + case "$_rc_status" in + vrt=' done' + echo -e '' done done + _rc_status=0 + return 0 + rc_exit + exit 0 Related (already fixed): bug 556979 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c3
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c4
Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c5
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c6
Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c7
Greg Kroah-Hartman
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c8
Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c9
Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c10
--- Comment #10 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c
kk zhang
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c11
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c12
--- Comment #12 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c13
--- Comment #13 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c14
Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c15
--- Comment #15 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c16
Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c17
--- Comment #17 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c18
--- Comment #18 from Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c19
Dr. Werner Fink
So it seems possible to have CMOS clock in UTC and kernel sys_tz set to -120 as you need. Werner?
This is possible but this is IMHO a nogo as the time reference is UTC in the kernel's system clock anf you would fool not only the kernel. This also would lead definitly to a wrong clock in user space as all zoneinfo file are gauged on UTC which is determined by using time(2) system call. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c20
--- Comment #20 from Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c21
Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c22
--- Comment #22 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c23
Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c24
--- Comment #24 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c25
--- Comment #25 from Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c26
--- Comment #26 from Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c27
--- Comment #27 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c28
--- Comment #28 from Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c29
--- Comment #29 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c30
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=681109
https://bugzilla.novell.com/show_bug.cgi?id=681109#c31
Jan Kara
participants (1)
-
bugzilla_noreply@novell.com