From 1ceb588ad4b1032b4879c5ea23d2e2ff907c42f5 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 11 Aug 2020 17:09:31 -0400 Subject: [PATCH] Just wait for ssh-keygen, just in case --- .../genesis/initramfs/opt/confluent/bin/rungenesis | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis b/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis index 680a9f71..aebb0c0e 100644 --- a/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis +++ b/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis @@ -28,7 +28,6 @@ if ! grep console= /proc/cmdline >& /dev/null; then else tmux a <> /dev/tty1 >&0 2>&1 & fi -(ssh-keygen -A; /usr/sbin/sshd) & TRIES=0 touch /etc/confluent/confluent.info cd /sys/class/net @@ -68,6 +67,7 @@ else ip route add default via $v4gw fi fi +ssh-keygen -A for pubkey in /etc/ssh/ssh_host*key.pub; do certfile=${pubkey/.pub/-cert.pub} privfile=${pubkey%.pub} @@ -75,7 +75,6 @@ for pubkey in /etc/ssh/ssh_host*key.pub; do echo HostCertificate $certfile >> /etc/ssh/sshd_config echo HostKey $privfile >> /etc/ssh/sshd_config done -killall sshd /usr/sbin/sshd while :; do bash