summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/build-packages4
-rwxr-xr-xconf/slave.conf.example3
-rwxr-xr-xlib/load-configuration2
3 files changed, 6 insertions, 3 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 3faa77e..5203fc8 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -478,9 +478,9 @@ while [ "${count}" -ne 0 ] && \
if echo "${straw}" | \
grep -qF ':clean_chroot:'; then
- outerParameters='-c'
+ outerParameters="-c -r ${archbuild_chroots}"
else
- outerParameters=''
+ outerParameters="-r ${archbuild_chroots}"
fi
innerParameters='--nocolor'
diff --git a/conf/slave.conf.example b/conf/slave.conf.example
index ea03df7..83b340e 100755
--- a/conf/slave.conf.example
+++ b/conf/slave.conf.example
@@ -36,3 +36,6 @@
# e.g. the one from /etc/pacman.d/mirrorlist32 (useful on build slaves which do not
# have the master mirror in the mirrorlist32)
#mirror_update_command=''
+
+# where are the archbuild chroots stored
+archbuild_chroots='/var/lib/archbuild/'
diff --git a/lib/load-configuration b/lib/load-configuration
index 8da872a..5eb65ad 100755
--- a/lib/load-configuration
+++ b/lib/load-configuration
@@ -129,7 +129,7 @@ fi
if ! ${i_am_the_master} && \
[ -r "${base_dir}/conf/slave.conf" ]; then
- # shellcheck source=/dev/null
+ # shellcheck source=../conf/slave.conf.example
. "${base_dir}/conf/slave.conf"
fi