shutils/chroot.sh: only cleanup /tmp files if /xbps hasn't been mounted.
This commit is contained in:
parent
2e3151e882
commit
5567ff7066
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue