Commit 9c190f8c authored by Guido Gunther's avatar Guido Gunther
Browse files

root.sh: Return 0 if there's no sshd

Otherwise we abort image generation due to lack of sshd.
parent c885d905
......@@ -215,7 +215,7 @@ function setup_journal()
function setup_sshd()
{
[ -x "${basedir}/usr/sbin/sshd" ] || return
[ -x "${basedir}/usr/sbin/sshd" ] || return 0
# Make sure unique host keys are generated on first boot
chroot "${basedir}" rm -f /etc/ssh/ssh_host_*
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment