ping. Any interest in this. Fixes an annoying bug for me: password-less root logins are broken if image is readonly. If there's a better way I'm happy to revise.
Thanks, Philip On 01/03/2015 06:52 PM, Philip Tricca wrote: > The ssh_allow_empty_password function modifies the standard sshd_config > file but not sshd_config_readonly. This patch uses a simple shell wildcard > to catch all openssh server config files so long as they're in /etc/ssh > and are named with the sshd_config prefix. > > Signed-off-by: Philip Tricca <fl...@twobit.us> > --- > meta/classes/image.bbclass | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass > index 07e7f99..80c90f6 100644 > --- a/meta/classes/image.bbclass > +++ b/meta/classes/image.bbclass > @@ -323,8 +323,8 @@ zap_empty_root_password () { > # allow dropbear/openssh to accept root logins and logins from accounts with > an empty password string > 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* > + sed -i > 's/^[#[:space:]]*PermitEmptyPasswords.*/PermitEmptyPasswords yes/' > ${IMAGE_ROOTFS}${sysconfdir}/ssh/sshd_config* > fi > > if [ -e ${IMAGE_ROOTFS}${sbindir}/dropbear ] ; then > -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core