diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2007-11-17 23:21:03 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2007-11-17 23:21:03 +0000 |
commit | 4b751ba2557d2e3f448f92589ee0c9d5e30f6388 (patch) | |
tree | 1d6d10ef0f954314d31dba063faa454bf33d05f1 /classes/image.bbclass | |
parent | 702d82aa16bb05d638353677359846af2d125674 (diff) |
classes: Sync staging layout cleanups from Poky
Diffstat (limited to 'classes/image.bbclass')
-rw-r--r-- | classes/image.bbclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass index 3420e3f53a..312307c831 100644 --- a/classes/image.bbclass +++ b/classes/image.bbclass @@ -4,6 +4,7 @@ LICENSE = "MIT" PACKAGES = "" RDEPENDS += "${IMAGE_INSTALL}" +# "export IMAGE_BASENAME" not supported at this time IMAGE_BASENAME[export] = "1" export PACKAGE_INSTALL ?= "${IMAGE_INSTALL}" @@ -179,8 +180,13 @@ set_image_autologin () { sed -i 's%^AUTOLOGIN=\"false"%AUTOLOGIN="true"%g' ${IMAGE_ROOTFS}/etc/sysconfig/gpelogin } +# Can be use to create /etc/timestamp during image construction to give a reasonably +# sane default time setting +rootfs_update_timestamp () { + date "+%m%d%H%M%Y" >${IMAGE_ROOTFS}/etc/timestamp +} # export the zap_root_password, create_etc_timestamp and remote_init_link -EXPORT_FUNCTIONS zap_root_password create_etc_timestamp remove_init_link do_rootfs make_zimage_symlink_relative set_image_autologin +EXPORT_FUNCTIONS zap_root_password create_etc_timestamp remove_init_link do_rootfs make_zimage_symlink_relative set_image_autologin rootfs_update_timestamp addtask rootfs before do_build after do_install |