diff options
author | Ross Burton <ross.burton@intel.com> | 2016-01-26 16:20:00 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-26 18:03:59 +0000 |
commit | cff11495cc376f080e06028655e4eb6c7f8a8094 (patch) | |
tree | 3a437eb5090b11b81a4092e999a0f05f1fda34d3 /meta/classes | |
parent | 3ac195bbd4ced24e6a132cfbe5e175b95fc4664b (diff) | |
download | openembedded-core-cff11495cc376f080e06028655e4eb6c7f8a8094.tar.gz openembedded-core-cff11495cc376f080e06028655e4eb6c7f8a8094.tar.bz2 openembedded-core-cff11495cc376f080e06028655e4eb6c7f8a8094.zip |
rootfs-postcommands: fix allow-empty-password on read-only rootfs
When a read-only rootfs is being used sshd uses a different sshd_config file,
which also needs to be editted.
[ YOCTO #8680 ]
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/rootfs-postcommands.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass index 0736d6c533..f5d6147b4d 100644 --- a/meta/classes/rootfs-postcommands.bbclass +++ b/meta/classes/rootfs-postcommands.bbclass @@ -113,8 +113,8 @@ zap_empty_root_password () { # ssh_allow_empty_password () { if [ -e ${IMAGE_ROOTFS}${sysconfdir}/ssh/sshd_config ]; then - sed -i 's/^[#[:space:]]*PermitRootLogin.*/PermitRootLogin yes/' ${IMAGE_ROOTFS}${sysconfdir}/ssh/sshd_config - sed -i 's/^[#[:space:]]*PermitEmptyPasswords.*/PermitEmptyPasswords yes/' ${IMAGE_ROOTFS}${sysconfdir}/ssh/sshd_config + sed -i 's/^[#[:space:]]*PermitRootLogin.*/PermitRootLogin yes/' ${IMAGE_ROOTFS}${sysconfdir}/ssh/sshd_config ${IMAGE_ROOTFS}${sysconfdir}/ssh/sshd_config_readonly + sed -i 's/^[#[:space:]]*PermitEmptyPasswords.*/PermitEmptyPasswords yes/' ${IMAGE_ROOTFS}${sysconfdir}/ssh/sshd_config ${IMAGE_ROOTFS}${sysconfdir}/ssh/sshd_config_readonly fi if [ -e ${IMAGE_ROOTFS}${sbindir}/dropbear ] ; then |