summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/image.bbclass7
-rw-r--r--meta/classes/poky-image.bbclass3
2 files changed, 9 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
diff --git a/meta/classes/poky-image.bbclass b/meta/classes/poky-image.bbclass
index 12bb933c5b..82f11b7037 100644
--- a/meta/classes/poky-image.bbclass
+++ b/meta/classes/poky-image.bbclass
@@ -79,3 +79,6 @@ X11_IMAGE_FEATURES = "x11-base apps-x11-core"
79SATO_IMAGE_FEATURES = "${X11_IMAGE_FEATURES} apps-x11-sato apps-x11-games apps-x11-pimlico" 79SATO_IMAGE_FEATURES = "${X11_IMAGE_FEATURES} apps-x11-sato apps-x11-games apps-x11-pimlico"
80 80
81inherit image 81inherit image
82
83# Create /etc/timestamp during image construction to give a reasonably sane default time setting
84ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp"