summaryrefslogtreecommitdiffstats
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-09-02 11:08:01 +0000
committerRichard Purdie <richard@openedhand.com>2007-09-02 11:08:01 +0000
commit3cb6c768efa690f25035351fb7975bca59f94ee2 (patch)
tree4a8ed27e58fb68270ecc213c9d3150519392a3f2 /meta/classes/image.bbclass
parentb2a26894b6e920d149c295f1e3de2926cd4b2b2c (diff)
downloadpoky-3cb6c768efa690f25035351fb7975bca59f94ee2.tar.gz
image.bbclass/poky-image.bbclass: Add a function to create /etc/timestamp during image construction to give a reasonably sane default time setting
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2649 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r--meta/classes/image.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 04e26e4b35..ead1708d5b 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -179,8 +179,13 @@ set_image_autologin () {
179 sed -i 's%^AUTOLOGIN=\"false"%AUTOLOGIN="true"%g' ${IMAGE_ROOTFS}/etc/sysconfig/gpelogin 179 sed -i 's%^AUTOLOGIN=\"false"%AUTOLOGIN="true"%g' ${IMAGE_ROOTFS}/etc/sysconfig/gpelogin
180} 180}
181 181
182# Can be use to create /etc/timestamp during image construction to give a reasonably
183# sane default time setting
184rootfs_update_timestamp () {
185 date "+%m%d%H%M%Y" >${IMAGE_ROOTFS}/etc/timestamp
186}
182 187
183# export the zap_root_password, create_etc_timestamp and remote_init_link 188# export the zap_root_password, create_etc_timestamp and remote_init_link
184EXPORT_FUNCTIONS zap_root_password create_etc_timestamp remove_init_link do_rootfs make_zimage_symlink_relative set_image_autologin 189EXPORT_FUNCTIONS zap_root_password create_etc_timestamp remove_init_link do_rootfs make_zimage_symlink_relative set_image_autologin rootfs_update_timestamp
185 190
186addtask rootfs before do_build after do_install 191addtask rootfs before do_build after do_install