[oe] [PATCH v2] initscripts: Modify 'populate-volatile.sh' to atomically update 'volatile.cache'

James Limbouris james at digitalmatter.com.au
Wed Jun 8 01:19:21 UTC 2011


> Date: Tue, 07 Jun 2011 12:13:14 +0200
> From: Paul Menzel <paulepanter at users.sourceforge.net>
> Subject: Re: [oe] [PATCH v2] initscripts: Modify
> 	'populate-volatile.sh' to atomically update 'volatile.cache'
> To: openembedded-devel at lists.openembedded.org
> Message-ID: <1307441594.4064.19.camel at mattotaupa>
> Content-Type: text/plain; charset="utf-8"
> 
> Dear James,
> 
> thank you for the updated patch.
> 
> Am Dienstag, den 07.06.2011, 17:35 +0800 schrieb James Limbouris:
> > When power is lost before a new volatile.cache has been flushed to disk,
> > it can be corrupted, leaving the volatiles uncreated and causing software
> failure.
> 
> So the device is still booting up although the power is lost? I am still
> confused how this patch can fix this. I am sorry for my ignorance.

Hi Paul,

The problem is that the volatile.cache script becomes corrupt.
On my system it became empty after power loss. When the system
reboots, it runs the empty script instead of recreating the volatiles, and
so some of the /var/xxx directories become broken symlinks. System software
then refuses to start up. If we make sure that it is never corrupted, the
problem should go away.

Regards,
James





More information about the Openembedded-devel mailing list