diff --git a/elements/simple-init/cleanup.d/90-remove-ssh-host-keys b/elements/simple-init/cleanup.d/90-remove-ssh-host-keys index 2a024d6c1..20b5ba3a6 100755 --- a/elements/simple-init/cleanup.d/90-remove-ssh-host-keys +++ b/elements/simple-init/cleanup.d/90-remove-ssh-host-keys @@ -14,5 +14,5 @@ set -o pipefail # simple-init. if [ -d /etc/ssh ] ; then - sudo find /etc/ssh -name 'ssh_host*' -type f -delete + sudo find $TARGET_ROOT/etc/ssh -name 'ssh_host*' -type f -delete fi