45467e4229
Move managing of SSH host keys into a dedicated element. Because glean doesn't generate SSH host keys anymore, we need to do it with a systemd script. This is already handled by CentOS / Fedora so we don't want to add it there. This was done to address the upstream bug in debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500192 Change-Id: I31ad667672e08350872db21a83445fe0aa7a4a39 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
16 lines
320 B
Bash
Executable File
16 lines
320 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
# Cloud images shouldn't have ssh host keys baked
|
|
# in so that they are regenerated on first boot and
|
|
# are unique.
|
|
|
|
if [ -d $TARGET_ROOT/etc/ssh ] ; then
|
|
sudo find $TARGET_ROOT/etc/ssh -name 'ssh_host*' -type f -delete
|
|
fi
|