Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#29470 - [initscripts] Superblock timestamp in the future error on every reboot
Attached to Project:
Arch Linux
Opened by Don Allen (donallen) - Sunday, 15 April 2012, 13:02 GMT
Last edited by Tom Gundersen (tomegun) - Monday, 30 July 2012, 11:27 GMT
Opened by Don Allen (donallen) - Sunday, 15 April 2012, 13:02 GMT
Last edited by Tom Gundersen (tomegun) - Monday, 30 July 2012, 11:27 GMT
|
DetailsDescription: I have Arch installed on an X86_64 system (Thinkpad X11), dual-boot with Windows 7. Because of Windows, I specified localtime during the Arch install (which I did yesterday, so the system is quite up-to-date). I have just a single root filesystem, ext4, no journal. Every time I reboot the system, I get the "superblock time in the future" error from fsck, together with a claim that it's fixed. The system time is correct. HARDWARECLOCK is "localtime" in rc.conf.
I'm aware that this problem has come up before, but apparently all the old bugs have been closed, as searching the bug db turned up nothing. Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: Install Arch and Windows in a dual-boot config. |
This task depends upon
You should use the forums to try to fix things first and post a proper bug report only if you find a bug.
Yes, I have tried using UTC for both Arch and Windows (editing the registry to convince Windows to understand that the hw clock is UTC). In fact, I am running the system that way now. If you are implying that that is a way to work around the problem, that's true. But that doesn't negate the fact that there is an issue here with the handling of localtime.
As for your last sentence, your little lecture about bug-reporting protocol, of which I am well aware, I did precisely that and there was an awful lot of discussion of issues like the one I encountered, but nothing helpful that I was able to find.
Do you use the "fsck" hook in your mkinitramfs? If so, this report should be assigned to Dave (I'll assign it preemptively).
Assuming you don't use the fsck hook:
Do you get a message saying "Adjusting system time and setting kernel timezone" during boot (check /var/log/boot)? Add an "echo $HWCLOCK_PARAMS" before "unset TZ" in rc.sysinit to check if the correct timezone is being set.
One more piece of info: could you please paste the contents of your /var/lib/hwclock/adjtime ?
One comment about your last message: if you "don't really support" localtime and don't test it, then, in my humble opinion, you shouldn't offer it as an option. I do of course appreciate your willingness to try to fix the problem, but if the option is there, it ought to be supported and tested. And I would argue that it should be supported, since, unfortunately, the world is littered with instances of Windows XP, as is the case with my netbook, and XP does not support UTC correctly. I have other machines with ARCH installed next to Windows 7, and in those cases I use UTC, since Windows 7's UTC support works correctly.
Ok, your requests:
1. I'm not sure how to check your query about a fsck hook in mkinitramfs. If you could be specific about how to get you the info you want, I will do it.
2. I do get the "Adjusting system time ..." message while booting. As for checking whether the correct timezone is being set, I'm curious why that matters. If the system time is local time, then during normal operation, the system doesn't need to do timezone corrections, if I understand correctly how timekeeping works. Also when I use the 'date' command, the response I get includes 'EDT', which I would take as proof that the timezone is correct. If you disagree and still want me to stick the echo into rc.sysinit, let me know and I'll do it.
3. /var/lib/hwclock/adjtime:
24.942066 1336362521 0.000000
1336362521
UTC
The way it currently works is that time is first set to UTC, then it 'jumps' to localtime (which might cause weird things to happen), if on top of this a daylight time change has happened since last boot, it is any ones guess what the real time is (since we have no way of knowing, we assume the admin sorts this out manually.
As to supporting this going forward, we basically need someone who understand how it all works, and who uses localtime and who uses testing to keep an eye on things.
To your problem: adjtime says that your RTC is in UTC, which is causing some confusion at done point (not sure where, add I'm on my phone and can't check the code). This can be fixed by either editing adjtime manually or calling hwclock with the right parameters. 'man hwclock' will give the details.
I think I'll add a warning to initscripts when this situation occurs (rc.conf and adjtime differing). Thanks for your report!