]> code.ossystems Code Review - openembedded-core.git/commit
dropbear: Deal with truncated host keys by removing them
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>
Fri, 18 Jan 2013 14:47:34 +0000 (15:47 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Jan 2013 12:56:58 +0000 (12:56 +0000)
commit16b57e352f5844f301cc6c7ea4f87bf750c11d67
treeb82dc80071d548b5068488dfa13ef14d58aaa55e
parent0f4112016bac07f0294f2a4d0fde4659c0fed2d2
dropbear: Deal with truncated host keys by removing them

Dropbear does not start when the host key is empty and it is possible
that a device is switched off before the host key is generated. This
is possible because the dropbearkey code doesn't create a temporary
file first. Detect truncated keys and then remove them which will lead
to the re-generation. This way the dropbear process will always start.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/dropbear/dropbear.inc
meta/recipes-core/dropbear/dropbear/init