Ensure /etc/ssh/ssh_known_hosts exist in docker config-data.
Works around the issue encountered in 1696283. Change-Id: I1947d9d1e3cabc5dfe25ee1af994d684425bdbf7 Resolves-Bug: #1696283
This commit is contained in:
parent
01c44271e8
commit
e7b7d4a0e3
|
@ -176,6 +176,10 @@ def mp_puppet_config((config_volume, puppet_tags, manifest, config_image, volume
|
|||
mkdir -p /var/lib/config-data/${NAME}/etc
|
||||
cp -a /etc/* /var/lib/config-data/${NAME}/etc/
|
||||
|
||||
# workaround LP1696283
|
||||
mkdir -p /var/lib/config-data/${NAME}/etc/ssh
|
||||
touch /var/lib/config-data/${NAME}/etc/ssh/ssh_known_hosts
|
||||
|
||||
if [ -d /root/ ]; then
|
||||
cp -a /root/ /var/lib/config-data/${NAME}/root/
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue