From ff00dc5448a424de401982016f508ce559ba5123 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 1 Jul 2014 15:06:47 +0200 Subject: [PATCH] xbps-src: destroy /tmp before entering the chroot. --- common/xbps-src/shutils/chroot.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/xbps-src/shutils/chroot.sh b/common/xbps-src/shutils/chroot.sh index 124be5ab5b0..6684c1c0e43 100644 --- a/common/xbps-src/shutils/chroot.sh +++ b/common/xbps-src/shutils/chroot.sh @@ -51,6 +51,11 @@ _EOF else rm -f $XBPS_MASTERDIR/etc/xbps/repo.d/00-alternative.conf fi + + if [ -d $XBPS_MASTERDIR/tmp ]; then + rm -rf $XBPS_MASTERDIR/tmp + mkdir -p $XBPS_MASTERDIR/tmp + fi } chroot_prepare() {