shutils/chroot.sh: only cleanup /tmp files if /xbps hasn't been mounted.

This commit is contained in:
Juan RP 2011-05-02 21:35:41 +02:00
parent 2e3151e882
commit 5567ff7066
1 changed files with 4 additions and 2 deletions

View File

@ -90,9 +90,11 @@ if [ -n "$XBPS_COMPRESS_LEVEL" ]; then
fi
echo "# End of configuration file." >> $XBPSSRC_CF
msg_normal "Cleaning up /tmp...\n"
if [ -d $XBPS_MASTERDIR/tmp ]; then
rm -rf $XBPS_MASTERDIR/tmp/*
if [ ! -f $XBPS_MASTERDIR/.xbps_mount_bind_done ]; then
msg_normal "Cleaning up /tmp...\n"
rm -rf $XBPS_MASTERDIR/tmp/*
fi
fi
prepare_chroot()