Commit ad932d5d authored by Guido Gunther's avatar Guido Gunther
Browse files Don't use package list to determine if ssh keys are needed

Using the package list is a bad idea since the package might be a
dependency. Check for the binary instead.
parent 2a283612
......@@ -166,7 +166,7 @@ function setup_journal()
function setup_sshd()
[[ "$packages" =~ "openssh-server" ]] || return
[ -x "${basedir}/usr/sbin/sshd" ] || return
# Generate new host keys on first boot
cp data/gen-sshd-host-keys "${basedir}/usr/local/bin/"
cp data/sshd-host-keys.service "${basedir}/etc/systemd/system/"
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