mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
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
This commit is contained in:
@@ -179,8 +179,13 @@ set_image_autologin () {
|
|||||||
sed -i 's%^AUTOLOGIN=\"false"%AUTOLOGIN="true"%g' ${IMAGE_ROOTFS}/etc/sysconfig/gpelogin
|
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 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
|
addtask rootfs before do_build after do_install
|
||||||
|
|||||||
@@ -79,3 +79,6 @@ X11_IMAGE_FEATURES = "x11-base apps-x11-core"
|
|||||||
SATO_IMAGE_FEATURES = "${X11_IMAGE_FEATURES} apps-x11-sato apps-x11-games apps-x11-pimlico"
|
SATO_IMAGE_FEATURES = "${X11_IMAGE_FEATURES} apps-x11-sato apps-x11-games apps-x11-pimlico"
|
||||||
|
|
||||||
inherit image
|
inherit image
|
||||||
|
|
||||||
|
# Create /etc/timestamp during image construction to give a reasonably sane default time setting
|
||||||
|
ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp"
|
||||||
|
|||||||
Reference in New Issue
Block a user