diff options
| -rw-r--r-- | meta/classes/core-image.bbclass | 6 | ||||
| -rw-r--r-- | meta/classes/image.bbclass | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/meta/classes/core-image.bbclass b/meta/classes/core-image.bbclass index a78f93405b..501456dba7 100644 --- a/meta/classes/core-image.bbclass +++ b/meta/classes/core-image.bbclass | |||
| @@ -69,9 +69,3 @@ CORE_IMAGE_EXTRA_INSTALL ?= "" | |||
| 69 | IMAGE_INSTALL ?= "${CORE_IMAGE_BASE_INSTALL}" | 69 | IMAGE_INSTALL ?= "${CORE_IMAGE_BASE_INSTALL}" |
| 70 | 70 | ||
| 71 | inherit image | 71 | inherit image |
| 72 | |||
| 73 | # Create /etc/timestamp during image construction to give a reasonably sane default time setting | ||
| 74 | ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp ; " | ||
| 75 | |||
| 76 | # Tweak the mount options for rootfs in /etc/fstab if read-only-rootfs is enabled | ||
| 77 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", "read_only_rootfs_hook; ", "",d)}' | ||
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 57aaf35552..e2995e2638 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
| @@ -182,6 +182,12 @@ ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'deb | |||
| 182 | # Enable postinst logging if debug-tweaks is enabled | 182 | # Enable postinst logging if debug-tweaks is enabled |
| 183 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'post-install-logging' ], "postinst_enable_logging; ", "",d)}' | 183 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'post-install-logging' ], "postinst_enable_logging; ", "",d)}' |
| 184 | 184 | ||
| 185 | # Create /etc/timestamp during image construction to give a reasonably sane default time setting | ||
| 186 | ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp ; " | ||
| 187 | |||
| 188 | # Tweak the mount options for rootfs in /etc/fstab if read-only-rootfs is enabled | ||
| 189 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", "read_only_rootfs_hook; ", "",d)}' | ||
| 190 | |||
| 185 | # Write manifest | 191 | # Write manifest |
| 186 | IMAGE_MANIFEST = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.manifest" | 192 | IMAGE_MANIFEST = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.manifest" |
| 187 | ROOTFS_POSTUNINSTALL_COMMAND =+ "write_image_manifest ; " | 193 | ROOTFS_POSTUNINSTALL_COMMAND =+ "write_image_manifest ; " |
