From 4ceb40e13d4a728fa7ca7d264b102248cc633be8 Mon Sep 17 00:00:00 2001 From: Clint Byrum Date: Wed, 13 Apr 2016 14:53:21 -0700 Subject: [PATCH] simple-init: Fix path for /etc/ssh test The cleanup path was fixed, but not the actual test. Change-Id: If9ff4ee55604fa317a9a5bda0eee0b2783ef079a --- 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 20b5ba3a6..c90626a8a 100755 --- a/elements/simple-init/cleanup.d/90-remove-ssh-host-keys +++ b/elements/simple-init/cleanup.d/90-remove-ssh-host-keys @@ -13,6 +13,6 @@ set -o pipefail # TODO(greghaynes) This should be a thing we do for all images, not just # simple-init. -if [ -d /etc/ssh ] ; then +if [ -d $TARGET_ROOT/etc/ssh ] ; then sudo find $TARGET_ROOT/etc/ssh -name 'ssh_host*' -type f -delete fi