[scripts] improve reliability of remaster_error_script.sh

This commit is contained in:
Fabio Erculiani 2011-03-01 11:04:26 +01:00
parent 5ef02356e0
commit 023e5b9ce2

View File

@ -1,7 +1,11 @@
#!/bin/sh #!/bin/sh
if [ -d "${CHROOT_DIR}" ]; then if [ -d "${CHROOT_DIR}/proc" ]; then
echo "Unmounting ${CHROOT_DIR}/proc"
umount "${CHROOT_DIR}/proc" umount "${CHROOT_DIR}/proc"
fi fi
echo "Umounting bind to ${CHROOT_PKGS_DIR}" CHROOT_PKGS_DIR="${CHROOT_DIR}/var/lib/entropy/client/packages"
umount "${CHROOT_PKGS_DIR}" || exit 1 if [ -d "${CHROOT_PKGS_DIR}" ]; then
echo "Umounting bind to ${CHROOT_PKGS_DIR}"
umount "${CHROOT_PKGS_DIR}" || exit 1
fi