aboutsummaryrefslogtreecommitdiff
path: root/lt-qcom-debian-images-arm64
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2016-09-15 11:36:30 +0200
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2016-09-15 09:44:20 +0000
commit0087bcab9e95cef0a5d175be4d4a10abc8c5d560 (patch)
treecc48413a70564cd5e48b595fe92f2e6676c03e2c /lt-qcom-debian-images-arm64
parent3763e64d10da452009ef888645bbb3735971ef66 (diff)
lt-qcom-debian-*: fixup the cleanup_exit trap
When the job fails , we might be in the middle of the image creation, in which case we have a bunch of files which were extracted with root, which can't be deleted by cleanup_exit(), which was run as regular user. Let's give super powers to the cleanup_exit() trap. Change-Id: I7444952b8cecf65441529d16bad4e5c61ebf5442 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'lt-qcom-debian-images-arm64')
-rw-r--r--lt-qcom-debian-images-arm64/builders.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/lt-qcom-debian-images-arm64/builders.sh b/lt-qcom-debian-images-arm64/builders.sh
index b42a6b853b..42e996599d 100644
--- a/lt-qcom-debian-images-arm64/builders.sh
+++ b/lt-qcom-debian-images-arm64/builders.sh
@@ -8,10 +8,7 @@ cleanup_exit()
{
cd ${WORKSPACE}
sudo kpartx -dv out/${VENDOR}-${OS_FLAVOUR}-*.sd.img || true
- rm -rf lci-build-tools
- rm -rf builddir*
- rm -rf out
- git clean -fdx
+ sudo git clean -fdxq
}
sudo apt-get update