diff options
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r-- | meta/classes/image.bbclass | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index b2a3e97820..152164851e 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -162,10 +162,16 @@ IMAGE_CLASSES += "image_types" | |||
162 | inherit ${IMAGE_CLASSES} | 162 | inherit ${IMAGE_CLASSES} |
163 | 163 | ||
164 | IMAGE_POSTPROCESS_COMMAND ?= "" | 164 | IMAGE_POSTPROCESS_COMMAND ?= "" |
165 | |||
166 | # Zap the root password if debug-tweaks feature is not enabled | ||
167 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'empty-root-password' ], "", "zap_empty_root_password ; ",d)}' | ||
168 | |||
165 | # Allow dropbear/openssh to accept logins from accounts with an empty password string if debug-tweaks is enabled | 169 | # Allow dropbear/openssh to accept logins from accounts with an empty password string if debug-tweaks is enabled |
166 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", "debug-tweaks", "ssh_allow_empty_password; ", "",d)}' | 170 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'allow-empty-password' ], "ssh_allow_empty_password; ", "",d)}' |
171 | |||
167 | # Enable postinst logging if debug-tweaks is enabled | 172 | # Enable postinst logging if debug-tweaks is enabled |
168 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", "debug-tweaks", "postinst_enable_logging; ", "",d)}' | 173 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'post-install-logging' ], "postinst_enable_logging; ", "",d)}' |
174 | |||
169 | # Write manifest | 175 | # Write manifest |
170 | IMAGE_MANIFEST = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.manifest" | 176 | IMAGE_MANIFEST = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.manifest" |
171 | ROOTFS_POSTUNINSTALL_COMMAND =+ "write_image_manifest ; " | 177 | ROOTFS_POSTUNINSTALL_COMMAND =+ "write_image_manifest ; " |