[poky] Inconsistent timestamp use
Saul Wold
saul.wold at intel.com
Wed Nov 3 08:35:57 PDT 2010
On 11/03/2010 06:58 AM, Gary Thomas wrote:
> The Poky root file system (init scripts) has a mechanism for
> supporting systems without a working hardware [time of day] clock.
> It seems that this has suffered some rot recently and is now
> quite inconsistent:
> * rootfs_update_timestamp() uses a different format for the time stamp
> * the init scripts look for /etc/timestamp2, not /etc/timestamp which
> is created with the image
>
> The attached patch makes this consistent and the system clock now works
> much better (about as good as a machine without a hardware clock can!)
>
Hi Gary,
This is a good change for the smaller images that use the busybox date
function, but will break images that use the real date command.
Unfortunately, they happen to use different formats for setting the time
and date.
It may be that we need 2 timestamp files, one for a busybox system and a
second for the standard date command and then extend the check in the
init scripts to figure out which date we are using currently.
Sau!
More information about the poky
mailing list