Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Clock skew detected for /etc/init.d
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6316
Location: /usr/lib64/lv2

PostPosted: Fri Mar 30, 2018 1:49 pm    Post subject: Clock skew detected for /etc/init.d Reply with quote

Every single time I boot up, I see an error about clock skew detected for /etc/init.d. Should I be concerned and should I fix this?
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7167

PostPosted: Fri Mar 30, 2018 3:52 pm    Post subject: Reply with quote

openrc does this:
* it store current time as t
* it then create deptree cache
* it then gets time from deptree_cache (s)
* if s < t then it detect clock trouble and create the clock-skewed file

But openrc < 0.35 have a bug in the step, it use stat on deptree to build s, without checking return value of stat, as such if stat fail, s will be garbage and the compare is hazardous.

What you can do:
* upgrade to 0.35+
* remove /lib/rc/clock-skewed file
* reboot

If your bios timing is good, it won't recreate it.
note that: the kernel is at work there too, a poor resolution timer and a quick hdd might result in s = t, use a good timer like hpet
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Fri Mar 30, 2018 10:53 pm    Post subject: Reply with quote

krinn wrote:
What you can do:

krinn, audiodef, et al ... you can also run 'rc-update -u' to correct this:

man rc-update wrote:
-u, --update Forces an update of the dependency tree cache. This may be needed in the event of clock skew (a file in /etc is newer than the system clock).

best ... khay
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7167

PostPosted: Sat Mar 31, 2018 3:24 am    Post subject: Reply with quote

tsssss, you're making it too simple, how could i reach NeddySeagoon's post count if you answer simply and people get it!
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5871

PostPosted: Sat Mar 31, 2018 4:39 am    Post subject: Reply with quote

probably similar enough to https://forums.gentoo.org/viewtopic-t-1079192.html
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6316
Location: /usr/lib64/lv2

PostPosted: Sun Apr 01, 2018 10:11 pm    Post subject: Reply with quote

khay's trick worked - thanks.

Neddy's post count should equal automatic bodhisattva status. :P
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum