shutils/chroot.sh: only cleanup /tmp files if /xbps hasn't been mounted.
This commit is contained in:
parent
2e3151e882
commit
5567ff7066
1 changed files with 4 additions and 2 deletions
|
@ -90,9 +90,11 @@ if [ -n "$XBPS_COMPRESS_LEVEL" ]; then
|
||||||
fi
|
fi
|
||||||
echo "# End of configuration file." >> $XBPSSRC_CF
|
echo "# End of configuration file." >> $XBPSSRC_CF
|
||||||
|
|
||||||
msg_normal "Cleaning up /tmp...\n"
|
|
||||||
if [ -d $XBPS_MASTERDIR/tmp ]; then
|
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
|
fi
|
||||||
|
|
||||||
prepare_chroot()
|
prepare_chroot()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue