summaryrefslogtreecommitdiff
path: root/meta/classes/core-image.bbclass
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2012-06-11 16:51:51 +0800
committerSaul Wold <sgw@linux.intel.com>2012-06-27 08:12:18 -0700
commit39ef0a705ca059f9a7c68aa1710c81411fb7c762 (patch)
treea3b57a088ec77a7e9d5e6f475b79ba0ebe7d982c /meta/classes/core-image.bbclass
parent2a4ab6fc2ef10202d13568aba5d7633e88aa71e5 (diff)
downloadopenembedded-core-39ef0a705ca059f9a7c68aa1710c81411fb7c762.tar.gz
openembedded-core-39ef0a705ca059f9a7c68aa1710c81411fb7c762.tar.bz2
openembedded-core-39ef0a705ca059f9a7c68aa1710c81411fb7c762.zip
classes/image: Allow openssh empty passwords login.
Allow empty passwords login so that the default root user can login in through openssh. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Diffstat (limited to 'meta/classes/core-image.bbclass')
-rw-r--r--meta/classes/core-image.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/core-image.bbclass b/meta/classes/core-image.bbclass
index e2ad0fcf31..25f5c5a8dc 100644
--- a/meta/classes/core-image.bbclass
+++ b/meta/classes/core-image.bbclass
@@ -69,4 +69,6 @@ ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp ; "
# Zap the root password if debug-tweaks feature is not enabled
ROOTFS_POSTPROCESS_COMMAND += '${@base_contains("IMAGE_FEATURES", "debug-tweaks", "", "zap_root_password ; ",d)}'
+# Allow openssh accept empty password login if both debug-tweaks and ssh-server-openssh are enabled
+ROOTFS_POSTPROCESS_COMMAND += '${@base_contains("IMAGE_FEATURES", "debug-tweaks ssh-server-openssh", "openssh_allow_empty_password; ", "",d)}'