diff options
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/image.bbclass | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 3db34ac193..9fa0155c8a 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
| @@ -182,10 +182,6 @@ zap_root_password () { | |||
| 182 | mv ${IMAGE_ROOTFS}/etc/passwd.new ${IMAGE_ROOTFS}/etc/passwd | 182 | mv ${IMAGE_ROOTFS}/etc/passwd.new ${IMAGE_ROOTFS}/etc/passwd |
| 183 | } | 183 | } |
| 184 | 184 | ||
| 185 | create_etc_timestamp() { | ||
| 186 | date +%2m%2d%2H%2M%Y >${IMAGE_ROOTFS}/etc/timestamp | ||
| 187 | } | ||
| 188 | |||
| 189 | # Turn any symbolic /sbin/init link into a file | 185 | # Turn any symbolic /sbin/init link into a file |
| 190 | remove_init_link () { | 186 | remove_init_link () { |
| 191 | if [ -h ${IMAGE_ROOTFS}/sbin/init ]; then | 187 | if [ -h ${IMAGE_ROOTFS}/sbin/init ]; then |
| @@ -217,7 +213,7 @@ set_image_autologin () { | |||
| 217 | # Can be use to create /etc/timestamp during image construction to give a reasonably | 213 | # Can be use to create /etc/timestamp during image construction to give a reasonably |
| 218 | # sane default time setting | 214 | # sane default time setting |
| 219 | rootfs_update_timestamp () { | 215 | rootfs_update_timestamp () { |
| 220 | date "+%m%d%H%M%Y" >${IMAGE_ROOTFS}/etc/timestamp | 216 | date -u +%2m%2d%2H%2M%4Y >${IMAGE_ROOTFS}/etc/timestamp |
| 221 | } | 217 | } |
| 222 | 218 | ||
| 223 | # Prevent X from being started | 219 | # Prevent X from being started |
| @@ -239,7 +235,7 @@ rootfs_trim_schemas () { | |||
| 239 | } | 235 | } |
| 240 | 236 | ||
| 241 | 237 | ||
| 242 | # export the zap_root_password, create_etc_timestamp and remote_init_link | 238 | # export the zap_root_password, and remote_init_link |
| 243 | EXPORT_FUNCTIONS zap_root_password create_etc_timestamp remove_init_link do_rootfs make_zimage_symlink_relative set_image_autologin rootfs_update_timestamp rootfs_no_x_startup | 239 | EXPORT_FUNCTIONS zap_root_password remove_init_link do_rootfs make_zimage_symlink_relative set_image_autologin rootfs_update_timestamp rootfs_no_x_startup |
| 244 | 240 | ||
| 245 | addtask rootfs before do_build after do_install | 241 | addtask rootfs before do_build after do_install |
