From 00d9a9d39693576d2a75c45ff9ed5896a460df88 Mon Sep 17 00:00:00 2001 From: Gregory Haynes Date: Wed, 6 Apr 2016 17:11:59 +0000 Subject: [PATCH] Fix ssh key cleanup to run in chroot Right now this removes the ssh keys on the build host. Obviously this is not what we want. Change-Id: Ib01d71ff9415a0ae04d963f6e380aab9ac2260ce --- elements/simple-init/cleanup.d/90-remove-ssh-host-keys | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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