summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-07-26 02:25:40 +0000
committerGerrit Code Review <review@openstack.org>2017-07-26 02:25:40 +0000
commit609bcee27bdc8d189da9108f4ddd98768827defd (patch)
tree18ffc1457414f8410ce1c1f25dca118b47ff2431
parent81e72d40450119cb772a86793c01f7bf95d89906 (diff)
parentbfeb9d9e99945dd634b457253cdd4f65cc752b27 (diff)
Merge "zypper: Clean caches and don't cache packages locally"2.7.1
-rwxr-xr-xdiskimage_builder/elements/zypper/post-install.d/98-zypper-clean-cache10
1 files changed, 10 insertions, 0 deletions
diff --git a/diskimage_builder/elements/zypper/post-install.d/98-zypper-clean-cache b/diskimage_builder/elements/zypper/post-install.d/98-zypper-clean-cache
new file mode 100755
index 0000000..d313fb2
--- /dev/null
+++ b/diskimage_builder/elements/zypper/post-install.d/98-zypper-clean-cache
@@ -0,0 +1,10 @@
1#!/bin/bash
2
3if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
4 set -x
5fi
6set -eu
7set -o pipefail
8
9# clean all locally cached metadata
10sudo zypper clean -a