<div class="gmail_quote">On Mon, Oct 31, 2011 at 1:44 AM, Ni Qingliang <span dir="ltr"><<a href="mailto:niqingliang@insigma.com.cn">niqingliang@insigma.com.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'd like the 'system level configuration' solution.<br>
<br>
the /etc/localtime/ link can be done when packaging rootfs (using the<br>
system level configuration).<br>
<div><div></div><div class="h5"><br>
On Fri, 2011-10-28 at 22:43 +0800, Mark Hatle wrote:<br>
> Setting the default TZ for the image is something that should be done in a post<br>
> install script for the tzdata package or something similar.<br>
><br>
> Since the /etc/localtime is usually a copy/hardlink or symlink to the timezone<br>
> data we don't want to package it up. Instead we want to perform the actions<br>
> that a program running on the target system itself would use to change the timezone.<br>
><br>
> So I think the easiest approach is to add a system level configuration variable<br>
> (set the default).<br>
><br>
> Then use this variable to populate the configuration file that specifies the<br>
> system timezone... and then use the post install process to check the contents<br>
> of a text file.<br>
><br>
> Alternatively do this via an initscript -- but for folks w/ read-only<br>
> filesystems I'm not sure that will work.<br>
><br>
> --Mark<br></div></div></blockquote><div class="h5"><cut><br><br>Maybe I misunderstand "system level configuration" but in the meta-oe recipe we have<br><br>DEFAULT_TIMEZONE ?= "Europe/London"<br>
<br>Maybe UTC would be better?<br>Note how the variable is weak thus can be overridden in local.conf. <br> <br>Secondly, why do it as post-install or at image do_rootfs stage when we have set the variable and are therefore able to provide sane defaults in do_install?<br>
<br>Other points before starting to write a patch:<br>-why is the recipe in oe-core doing chown -R root:root ${D} ?<br><br>-the logic around # libc is removing zoneinfo files from package<br> Is it only eglibc?<br>
<br><br>Regards<br><br>Andrea<br><br><code><br></code></div></div>