Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 494700 - fsck needs hwclock on windows dual boot
Summary: fsck needs hwclock on windows dual boot
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-18 23:29 UTC by Peter
Modified: 2014-01-21 12:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2013-12-18 23:29:08 UTC
If you dual boot windows, and fsck doesn't depend on hwclock, there's minor errors on the timestamps.

Reproducible: Always

Steps to Reproduce:
/etc/conf.d/hwclock to "local"
Comment 1 William Hubbs gentoo-dev 2014-01-08 20:32:15 UTC
There is not enough information in this bug for me to tell what is going
on since hwclock always should run before fsck.

Please re-open when you can provide the output from emerge --info and a copy of
/var/log/rc.log of a reboot. That will allow me to see when hwclock is
running in your boot sequence.
Comment 2 Peter 2014-01-09 13:42:51 UTC
What?

There's no "depends" in the rcs for hwclock.  So if you dual boot windows, sometimes it causes minor errors in fsck.
Comment 3 William Hubbs gentoo-dev 2014-01-10 21:00:16 UTC
There is a "use clock" in fsck, and hwclock has "provide clock".
This means fsck will run hwclock before it does anything because of
the use statement as long as fsck and hwclock are in the same runlevel.
Comment 4 Peter 2014-01-11 11:39:11 UTC
I don't know.  I'll check again today.  Unless there was a recent change... well I mean its minor, but I definitely had to add "depends" for the hwclock.  fsck was running first.
Comment 5 Peter 2014-01-16 12:38:26 UTC
What about swclock?
Comment 6 William Hubbs gentoo-dev 2014-01-16 16:41:56 UTC
swclock is also a provider for clock, so the same thing should happen.
However, I do not recommend using swclock if your system has a rtc. That
sets your system time based on the date/time of a file.
Comment 7 Peter 2014-01-17 12:08:19 UTC
So you're saying I need to turn off the swclock?  That that's the problem?  I thought they were both supposed to be running.
Comment 8 William Hubbs gentoo-dev 2014-01-18 04:57:48 UTC
Correct, if you have both hwclock and swclock in your boot runlevel, you
should turn off swclock.
The only time you should ever run swclock is if your computer does not
have a clock.
Comment 9 Peter 2014-01-19 21:53:42 UTC
I had no idea, I never turned it on certainly, it was on my default.  I'll give that a try today.
Comment 10 Peter 2014-01-19 21:53:57 UTC
It was on *by default.
Comment 11 William Hubbs gentoo-dev 2014-01-20 17:46:28 UTC
We do not add swclock to the runlevels by default, so I am not sure how
it would have gotten there.
Comment 12 Peter 2014-01-21 12:27:57 UTC
Yeah, you're right, I checked, it wasn't swclock.  I know adding rc_need fixed it... I'm not sure, I'll check a bit more.