Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 545802

Summary: =sys-apps/openrc-0.13.11: swclock should not using /run/openrc/shutdowntime as storing the timestamp
Product: Gentoo Linux Reporter: Yixun Lan <dlan>
Component: [OLD] Core systemAssignee: OpenRC Team <openrc>
Status: RESOLVED INVALID    
Severity: normal CC: dlan
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Yixun Lan archtester gentoo-dev 2015-04-07 08:06:36 UTC
directory /run is tmpfs which is mounted at boot time, so files storing there will eventually lost at shutdown time, we'd better store shutdowntime at somewhere under /var/xxx? (previously we stored it at /lib/rc/cache/shutdowntime?)

Reproducible: Always
Comment 1 William Hubbs gentoo-dev 2015-04-07 19:52:44 UTC
If /var is a separate partition, it will not be available early enough
since swclock runs very early in the startup sequence.
Comment 2 Yixun Lan archtester gentoo-dev 2015-04-08 03:19:08 UTC
problem here is that, I'm also enable hwclock, which override previous swclock's setting. removing it solve my problem