Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Jan Remmet <J.Remmet@phytec.de>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] rootfs-postcommands: generate /var/lib/systemd/clock
Date: Wed, 15 Jun 2016 15:31:38 +0200	[thread overview]
Message-ID: <20160615133138.GB3053@lws-weitzel2@phytec.de> (raw)
In-Reply-To: <20160615100218.GA2569@jama>

On Wed, Jun 15, 2016 at 12:02:18PM +0200, Martin Jansa wrote:
> On Wed, Jun 15, 2016 at 11:23:32AM +0200, Jan Remmet wrote:
> > systemd timesyncd check /var/lib/systemd/clock instead of
> > /etc/timestamp.
> > If this file is missing it defaults to TIME_EPOCH. It's set while
> > configuring systemd.
> 
> Wrong ML, re-send to openembedded-core
Thanks,

Jan
> > 
> > Signed-off-by: Jan Remmet <j.remmet@phytec.de>
> > ---
> >  meta/classes/rootfs-postcommands.bbclass | 6 ++++++
> >  1 file changed, 6 insertions(+)
> > 
> > diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass
> > index db8b551..0c7b764 100644
> > --- a/meta/classes/rootfs-postcommands.bbclass
> > +++ b/meta/classes/rootfs-postcommands.bbclass
> > @@ -234,6 +234,12 @@ python write_image_manifest () {
> >  # sane default time setting
> >  rootfs_update_timestamp () {
> >  	date -u +%4Y%2m%2d%2H%2M%2S >${IMAGE_ROOTFS}/etc/timestamp
> > +
> > +	if ${@bb.utils.contains("DISTRO_FEATURES", "systemd", "true", "false", d)}; then
> > +		# touch needs timestamp as [[CC]YY]MMDDhhmm[.ss]
> > +		TS=$(sed 's/[.]*/&./13' ${IMAGE_ROOTFS}/etc/timestamp)
> > +		touch -t $TS ${IMAGE_ROOTFS}/var/lib/systemd/clock
> > +	fi
> >  }
> >  
> >  # Prevent X from being started
> > -- 
> > 1.9.1
> > 
> > -- 
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> 
> -- 
> Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com



> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



      reply	other threads:[~2016-06-15 13:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-15  9:23 [PATCH] rootfs-postcommands: generate /var/lib/systemd/clock Jan Remmet
2016-06-15 10:02 ` Martin Jansa
2016-06-15 13:31   ` Jan Remmet [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160615133138.GB3053@lws-weitzel2@phytec.de \
    --to=j.remmet@phytec.de \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox