[OE-core] [PATCH] openssh: allow root login when debug-tweaks is enabled
Saul Wold
sgw at linux.intel.com
Fri Sep 7 21:04:35 UTC 2012
On 09/07/2012 01:52 PM, Khem Raj wrote:
> On Fri, Sep 7, 2012 at 11:17 AM, Saul Wold <sgw at linux.intel.com> wrote:
>> + for i in ${IMAGE_FEATURES};
>> + do
>> + if [ ${i} = "debug-tweaks" ]; then
>> + sed -i -e "s/^#PermitRootLogin/PermitRootLogin/" ${D}${sysconfdir}/ssh/sshd_config
>> + sed -i -e "s/^#PermitEmptyPasswords no/PermitEmptyPasswords yes/" ${D}${sysconfdir}/ssh/sshd_config
>> + fi
>> + done
>
> instead of looping could you apply same logic as in dropbear to do this thing ?
>
>
dropbear seems to do it as a patch, not in the do_install_append, also
looking at dropbear it may be possible to simplify that it seems like
it's a 2 step process that could be done in one step. I think
DISTRO_TYPE is only used in dropbear.
I guess its possible to export a variable that can be read by the
install_append(), I will give it a test.
Sau!
More information about the Openembedded-core
mailing list