[OE-core] [PATCH] initscripts: Make /etc/timestamp consistent again.
Richard Purdie
richard.purdie at linuxfoundation.org
Fri Feb 24 10:26:26 UTC 2012
On Fri, 2012-02-24 at 09:06 +0200, Lauri Hintsala wrote:
> On 02/10/2012 06:16 PM, Gary Thomas wrote:
> > Commit cc8695 changed the way timestamps were handled
> > and added some extra munging to be able to compare them
> > reliably. This change makes the timestamp value the same
> > everywhere and simplifies how the check to set the system
> > clock based on the timestamp is done.
> >
> > Also, if the value stored in /etc/timestamp is newer
> > [at all] than the current system time, set the system clock
> > from the stored value, down to the minute, not just the day.
> >
> > Signed-off-by: Gary Thomas<gary at mlbassoc.com>
> > ---
> > .../initscripts/initscripts-1.0/bootmisc.sh | 4 ++--
> > .../initscripts/initscripts-1.0/save-rtc.sh | 2 +-
> > meta/recipes-core/initscripts/initscripts_1.0.bb | 2 +-
> > 3 files changed, 4 insertions(+), 4 deletions(-)
>
>
> Hi Gary,
>
> You should do the same changes to meta/classes/image.bbclass where the
> /etc/timestamp file is generated to filesystem image.
Agreed, this is a nasty inconsistency. I've pushed a patch into master
which fixes this.
Cheers,
Richard
More information about the Openembedded-core
mailing list