xbps-src: do not umount if <masterdir>/.xbps_chroot_working is there.

This commit is contained in:
Juan RP 2010-05-15 17:28:18 +02:00
parent bf108c4daf
commit ab3193c208
2 changed files with 14 additions and 8 deletions

View file

@ -60,7 +60,8 @@ mount_chroot_fs()
echo 1 > ${XBPS_MASTERDIR}/.${f}_mount_bind_done
echo "done."
else
echo "failed."
echo "FAILED!!!!!"
exit 1
fi
else
cnt=$(cat ${XBPS_MASTERDIR}/.${f}_mount_bind_done)
@ -74,6 +75,10 @@ umount_chroot_fs()
{
local fs dir cnt
if [ -f ${XBPS_MASTERDIR}/.xbps_chroot_working ]; then
return 0
fi
for fs in ${REQFS}; do
[ ! -f ${XBPS_MASTERDIR}/.${fs}_mount_bind_done ] && continue
cnt=$(cat ${XBPS_MASTERDIR}/.${fs}_mount_bind_done)
@ -88,7 +93,7 @@ umount_chroot_fs()
rm -f ${XBPS_MASTERDIR}/.${fs}_mount_bind_done
echo "done."
else
echo "failed."
echo "FAILED!!!"
fi
fi
unset fs