diff options
Diffstat (limited to 'builders/milou')
-rwxr-xr-x | builders/milou/binhost-update | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/builders/milou/binhost-update b/builders/milou/binhost-update index d48e15e..2f69534 100755 --- a/builders/milou/binhost-update +++ b/builders/milou/binhost-update @@ -113,6 +113,9 @@ emerge --sync -q &>> ${TMPFILE} anyfail=0 +exec {BASH_XTRACEFD}>> ${TMPFILE} +set -x + nspawn_command=(systemd-nspawn --bind /var/cache/distfiles --bind-ro /var/db/repos/gentoo --tmpfs=/var/tmp:mode=1777,size=${TMPFS_SIZE}g) for n in ${NSPAWN_NAMES} ; do machinedir=/var/lib/machines/${n} @@ -127,13 +130,16 @@ for n in ${NSPAWN_NAMES} ; do let "anyfail+=${ret}" if [[ ${ret} = 0 ]]; then builder=$(readlink ${machinedir}/etc/portage) + echo "Starting variant builds for ${machinedir}/${builder}..." &>> ${TMPFILE} for variant in ${machinedir}/${builder}/variants/*; do [[ -d ${variant} ]] || break + echo "Variant: ${variant}" &>> ${TMPFILE} "${nspawn_command[@]}" --ephemeral --bind ${machinedir}/var/cache/binpkgs -M ${n} /root/bin/run-update ${variant##*/} &>> ${TMPFILE} let "anyfail+=$?" done fi done +set +x cp ${TMPFILE} /var/lib/machines/binhost-amd64-x86-64-kde-23/var/cache/binpkgs/last-build.log |