From df3fdc4a5d0ca403428490c0c00ba65c087de84c Mon Sep 17 00:00:00 2001 From: Ross Brattain Date: Sun, 25 Mar 2018 22:06:52 -0700 Subject: [PATCH] add verbose to debug losetup delete JIRA: YARDSTICK-1096 JIRA: YARDSTICK-1054 Change-Id: I5a11dbd2638782c5e499cb94dd5882b8bf696e8d Signed-off-by: Ross Brattain --- ansible/build_yardstick_image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/build_yardstick_image.yml b/ansible/build_yardstick_image.yml index 429ab88aa..06131f570 100644 --- a/ansible/build_yardstick_image.yml +++ b/ansible/build_yardstick_image.yml @@ -86,7 +86,7 @@ # use this because kpartx -dv will fail if raw_imgfile was delete # but in theory we could have deleted file still attached to loopback device? # use grep because of // and awk - shell: losetup -O NAME,BACK-FILE | grep "{{ raw_imgfile_basename }}" | awk '{ print $1 }' | xargs -l1 losetup -d + shell: losetup -O NAME,BACK-FILE | grep "{{ raw_imgfile_basename }}" | awk '{ print $1 }' | xargs -l1 losetup -v -d ignore_errors: true - name: delete {{ raw_imgfile }} -- 2.16.6