[Bug 638185] New: After changing the TZ and rebooting the old TZ is used
https://bugzilla.novell.com/show_bug.cgi?id=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c0 Summary: After changing the TZ and rebooting the old TZ is used Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: PC OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: cloessl@x-berg.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100714 SUSE/3.5.11-0.1.1 Firefox/3.5.11 After installation I used yast to change the TZ. Now after every reboot the old TZ is used because the initrd wasn't updated. Reproducible: Always Steps to Reproduce: 1. use yast to set a different TZ 2. Reboot Actual Results: The clock is set to old TZ Expected Results: The clock should use the new TZ Workaround: run as root /sbin/refresh_initrd There was a similar problem with the HWclock and UTC: https://bugzilla.novell.com/show_bug.cgi?id=538357 And it seems that the yast modul clock is still not running the command /sbin/refresh_initrd which is defined in cat /etc/sysconfig/clock [...] ## Command: /sbin/refresh_initrd -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c1 wei wang <wewang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |wewang@novell.com InfoProvider| |cloessl@x-berg.de --- Comment #1 from wei wang <wewang@novell.com> 2010-09-10 02:30:35 UTC --- Christopher, thank you for your report, could you please help to provide y2logs according to the following URL? Thank you. http://en.opensuse.org/openSUSE:Bugreport_YaST -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c wei wang <wewang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |yast2-maintainers@suse.de |ovo.novell.com | -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c2 Christopher Loessl <cloessl@x-berg.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|cloessl@x-berg.de | --- Comment #2 from Christopher Loessl <cloessl@x-berg.de> 2010-09-14 10:25:03 UTC --- Created an attachment (id=389446) --> (http://bugzilla.novell.com/attachment.cgi?id=389446) Changed TZ via yast and rebooted system afterwards, mkinitrd holds old /etc/timezone # save_y2logs /tmp/y2logs.tgz y2logs.tar attached I switched the TZ via yast before I executed save_y2logs and rebooted. So the initrd hast still the old timezone. As already said, running refresh_initrd pulls the new /etc/timezone into the initrd and everything is fine again. -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c3 Christopher Loessl <cloessl@x-berg.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cloessl@x-berg.de --- Comment #3 from Christopher Loessl <cloessl@x-berg.de> 2010-09-23 09:38:19 UTC --- Since there is still no one working on it, here is a work around: cat /sbin/conf.d/SuSEconfig.workaround_time #! /bin/sh # Copyright (c) 2010 GOM mbH, Braunschweig, Germany. # All rights reserved. # # Author: Christopher Loessl <c.loessl@gom.com>, 2010 # check if we are started as root # only one of UID and USER must be set correctly if test "$UID" != 0 -a "$USER" != root; then echo "You must be root to start $0." exit 1 fi /sbin/refresh_initrd -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c Thomas Göttlicher <tgoettlicher@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|yast2-maintainers@suse.de |jsuchome@novell.com -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c4 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |werner@novell.com --- Comment #4 from Jiří Suchomel <jsuchome@novell.com> 2010-10-19 13:46:14 UTC --- Uhm, true YaST timezone does not call refresh_initrd. In 11,3, YaST calls directly mkinitrd but only when clock is --localtime and time was manually changed. Werner, what is the correct solution again? Should it be enough if YaST timezone would call refresh_initrd always at the end? Instead of mkinitrd under above conditions? Or was the 11.2 situation different than 11.3? -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c5 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW CC| |werner@novell.com InfoProvider|werner@novell.com | --- Comment #5 from Dr. Werner Fink <werner@novell.com> 2010-10-19 14:06:08 UTC --- For this we may add ## Command: /sbin/refresh_initrd also to TIMEZONE in /etc/sysconfig/clock ... IMHO refresh_initrd should be called HWCLOCK is changed (--localtime <-> --utc) and/or if --localtime is set and TIMEZONE will be changed. AFAIKCR refresh_initrd was added by after Milestone 8 of 11.2 and IMHO the situation is identical to 11.3 -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c6 --- Comment #6 from Dr. Werner Fink <werner@novell.com> 2010-10-19 14:07:47 UTC --- (In reply to comment #5) just submitted a aaa_base with ## Command: /sbin/refresh_initrd for TIMEZONE of /etc/sysconfig/clock -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c7 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |werner@novell.com --- Comment #7 from Jiří Suchomel <jsuchome@novell.com> 2010-10-19 14:29:33 UTC --- So, for YaST, could I revert the change done for bug 627116 and only call refresh_initrd in situations from comment 5? -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c8 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|werner@novell.com | --- Comment #8 from Dr. Werner Fink <werner@novell.com> 2010-10-19 15:03:58 UTC --- IMHO yes ... as long as the conditions in /sbin/refresh_initrd are given: refresh=no test /etc/sysconfig/clock -nt /boot/initrd && refresh=yes test /etc/sysconfig/kernel -nt /boot/initrd && refresh=yes test "$refresh" = yes || exit 0 /sbin/refresh_initrd should call mkinitrd at last but not least. -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c10 Christian Dengler <cdengler@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cdengler@novell.com --- Comment #10 from Christian Dengler <cdengler@novell.com> 2010-11-15 15:54:14 UTC --- package yast2-country? +1 for an update to fix it definitely. -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c12 DIMITRIOS BOURAS <dbouras@ieee.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dbouras@ieee.org --- Comment #12 from DIMITRIOS BOURAS <dbouras@ieee.org> 2010-11-18 07:04:46 UTC --- I ran into the same problem (currently still using 11.2) about a week ago, and also traced it to the initrd refresh problem. However, I do have one more observation about another problem that may have caused this bug to surface. It appears that /etc/adjtime is created every time the system boots, regardless of the following code fragment in /etc/init.d/boot.clock: if test ! -s /etc/adjtime ; then echo "0.0 0 0.0" echo "0" echo "UTC" fi > /etc/adjtime rtc_rule /sbin/hwclock $HWCLOCK --adjust There are 2 problems here: a) "test ! -s /etc/adjtime" seems to fail, prompting the creation of the file regardless of whether it exists or not. b) why is hwclock called with --adjust? It is at this point that --hctosys should be used to give the newly started system a "ball-park" value for current time, taking into account /etc/adjtime. The current mechanism, relying on initrd booting is tremendously counter-intuitive. -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c13 --- Comment #13 from Dr. Werner Fink <werner@novell.com> 2010-11-18 08:25:39 UTC --- Args .... your're correct, the `if ... fi' tree always produce /etc/adjtime regardless is the boolean is true or false ;} -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c14 --- Comment #14 from Dr. Werner Fink <werner@novell.com> 2010-11-18 08:29:20 UTC --- OS 11.3 does not show this as if looks like as this was fixed with bug #570245 -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c15 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:running:37343:low --- Comment #15 from Swamp Workflow Management <swamp@suse.com> 2010-11-23 15:08:24 UTC --- The SWAMPID for this issue is 37343. This issue was rated as low. Please submit fixed packages until 2010-12-21. Also create a patchinfo file using this link: https://swamp.suse.de/webswamp/wf/37343 -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c16 Christian Dengler <cdengler@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|maintenance@opensuse.org | --- Comment #16 from Christian Dengler <cdengler@novell.com> 2010-11-23 15:09:24 UTC --- Be so kind and submit all necessary fixed packages. -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c19 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #19 from Jiří Suchomel <jsuchome@novell.com> 2010-11-24 10:16:39 UTC --- I created patchinfo and submited packages for 11.2 and 11.3 -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c20 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vagelis_giannadakis@yahoo.g | |r --- Comment #20 from Jiří Suchomel <jsuchome@novell.com> 2010-11-24 10:23:41 UTC --- *** Bug 650460 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=650460 -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c21 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:37343:low |maint:running:37343:low | |maint:released:11.2:37362 | |maint:released:11.3:37362 --- Comment #21 from Swamp Workflow Management <swamp@suse.com> 2010-12-01 20:43:34 UTC --- Update released for: yast2-country, yast2-country-data Products: openSUSE 11.2 (i586, x86_64) openSUSE 11.3 (i586, x86_64) -- 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=638185 https://bugzilla.novell.com/show_bug.cgi?id=638185#c Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:37343:low |. |maint:released:11.2:37362 | |maint:released:11.3:37362 | -- 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.
participants (1)
-
bugzilla_noreply@novell.com