summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Engelbrecht <engeg@google.com>2020-11-02 14:58:36 -0700
committerCommit Bot <commit-bot@chromium.org>2020-11-03 07:15:12 +0000
commitf1062d8ad6e596b7e8850e60c8b7f87d8fd84041 (patch)
treea4fa4f90fd14080f7431e598fdb6e21465aa84e5
parentfd5cd5aa9883d346b102210004b8fafecc1ba457 (diff)
downloadvboot-f1062d8ad6e596b7e8850e60c8b7f87d8fd84041.tar.gz
common: log loopback detaches
We want to find the culprit loopback device which isn't detatching on crbug.com/1141907. We might as well log our cleanup actions anyway, and this will allow us to see the last loopback processed in production. BUG=chromium:1141907 TEST=just a log message BRANCH=None Signed-off-by: George Engelbrecht <engeg@google.com> Change-Id: I126efceae4f67993069675c23f6c4af61c7e5667 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2514561 Reviewed-by: LaMont Jones <lamontjones@chromium.org>
-rw-r--r--scripts/image_signing/common.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/image_signing/common.sh b/scripts/image_signing/common.sh
index f1fd3ef7..9541ca08 100644
--- a/scripts/image_signing/common.sh
+++ b/scripts/image_signing/common.sh
@@ -120,6 +120,7 @@ loopback_detach() {
cleanup_loopbacks() {
local line
while read -r line; do
+ info "Cleanup: detaching ${line}"
loopback_detach "${line}" 2>/dev/null
done <"${TEMP_LOOP_LIST}"
rm -f "${TEMP_LOOP_LIST}"