Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Mark Hatle <mark.hatle@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: how to set time zone
Date: Fri, 28 Oct 2011 09:43:02 -0500	[thread overview]
Message-ID: <4EAABF76.7080703@windriver.com> (raw)
In-Reply-To: <CAAQYJAtJsSRSN5jLzK65iKUJPorc8h+RjqcnQBw2pyK34+ejjQ@mail.gmail.com>

Setting the default TZ for the image is something that should be done in a post
install script for the tzdata package or something similar.

Since the /etc/localtime is usually a copy/hardlink or symlink to the timezone
data we don't want to package it up.  Instead we want to perform the actions
that a program running on the target system itself would use to change the timezone.

So I think the easiest approach is to add a system level configuration variable
(set the default).

Then use this variable to populate the configuration file that specifies the
system timezone... and then use the post install process to check the contents
of a text file.

Alternatively do this via an initscript -- but for folks w/ read-only
filesystems I'm not sure that will work.

--Mark

On 10/28/11 3:22 AM, Andrea Adami wrote:
> On Fri, Oct 28, 2011 at 9:05 AM, Ni Qingliang <niqingliang@insigma.com.cn
> <mailto:niqingliang@insigma.com.cn>> wrote:
> 
>     THANKS!
> 
>     I still want the native support by oe-core/yocto:-). If no, I will try
>     by myself.
> 
> 
> I've asked three or four time the oe-core crow to improve the recipe...last one:
> 
> On Wed, Oct 19, 2011 at 12:24 AM, Joshua Lock <josh@linux.intel.com
> <mailto:josh@linux.intel.com>> wrote:
> 
>     Per mailing requests, here are updates to the tzdata and gst-plugins-good
>     recipes.
> 
>     Joshua
> 
>     The following changes since commit 95d0ff5e070c690314ab87665200099a52d37ebf:
> 
>      tzdata: updated SRC_URI and update to 2011k (2011-10-18 11:16:58 -0700)
> 
> 
> Thanks for the tzdata fix.
> Now, we have the same recipes in meta-oe with a slightly different do_install
> and packaging: I'm referring to /etc/localtime and /etc/timezone: which package
> do provide those in oe-core?
> 
> (We'll remove the tzdata/tzcodes from meta-oe once the recipes are matching)
> 
> Regards
> 
> 
> 
> Andrea
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core




  reply	other threads:[~2011-10-28 14:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-28  5:41 how to set time zone Ni Qingliang
2011-10-28  6:32 ` Samuel Stirtzel
2011-10-28  7:05   ` Ni Qingliang
2011-10-28  8:22     ` Andrea Adami
2011-10-28 14:43       ` Mark Hatle [this message]
2011-10-31  0:44         ` Ni Qingliang
2011-11-02 17:32           ` Andrea Adami
2011-11-02 19:15             ` Mark Hatle
2011-11-03  0:47               ` Ni Qingliang
2011-11-03  1:19                 ` Otavio Salvador
2011-11-03  1:35                   ` Ni Qingliang
2011-11-03  1:58                     ` Philip Balister
2011-11-03  2:14                       ` Ni Qingliang
2011-11-03 16:20               ` Andrea Adami
2011-10-28 16:15       ` Saul Wold

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=4EAABF76.7080703@windriver.com \
    --to=mark.hatle@windriver.com \
    --cc=openembedded-core@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