summaryrefslogtreecommitdiffstats
path: root/meta/classes/core-image.bbclass
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-09-07 17:05:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-07 22:54:17 +0100
commit0342cf81d5edd20f95378408e159f00da6ae2c76 (patch)
tree14d64e95ae7646c9f2bb45d78c7a068a30a7d17d /meta/classes/core-image.bbclass
parentf0d490684b48cd40c7ea8a2b60fbb360c7cc89a7 (diff)
downloadpoky-0342cf81d5edd20f95378408e159f00da6ae2c76.tar.gz
core-image.bbclass: zap root password if debug-tweaks not enabled
If you do not have debug-tweaks in IMAGE_FEATURES, then zap the root password so that you can't log in as root without a password in an image potentially intended for a production system. Also mention debug-tweaks in the comments listing IMAGE_FEATURES in this file. (From OE-Core rev: 5ddda44efc97b4d6cf863033348e57e5cfdcd392) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/core-image.bbclass')
-rw-r--r--meta/classes/core-image.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/core-image.bbclass b/meta/classes/core-image.bbclass
index 507d6a60e6..8e83d4abe1 100644
--- a/meta/classes/core-image.bbclass
+++ b/meta/classes/core-image.bbclass
@@ -26,6 +26,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3
26# - nfs-server - NFS server (exports / over NFS to everybody) 26# - nfs-server - NFS server (exports / over NFS to everybody)
27# - ssh-server-dropbear - SSH server (dropbear) 27# - ssh-server-dropbear - SSH server (dropbear)
28# - ssh-server-openssh - SSH server (openssh) 28# - ssh-server-openssh - SSH server (openssh)
29# - debug-tweaks - makes an image suitable for development
29# 30#
30PACKAGE_GROUP_apps-console-core = "task-core-apps-console" 31PACKAGE_GROUP_apps-console-core = "task-core-apps-console"
31PACKAGE_GROUP_x11-base = "task-core-x11-base" 32PACKAGE_GROUP_x11-base = "task-core-x11-base"
@@ -65,3 +66,7 @@ inherit image
65 66
66# Create /etc/timestamp during image construction to give a reasonably sane default time setting 67# Create /etc/timestamp during image construction to give a reasonably sane default time setting
67ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp ; " 68ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp ; "
69
70# Zap the root password if debug-tweaks feature is not enabled
71ROOTFS_POSTPROCESS_COMMAND += '${@base_contains("IMAGE_FEATURES", "debug-tweaks", "", "zap_root_password ; ",d)}'
72