[scripts] improve reliability of remaster_error_script.sh
This commit is contained in:
parent
5ef02356e0
commit
023e5b9ce2
@ -1,7 +1,11 @@
|
||||
#!/bin/sh
|
||||
if [ -d "${CHROOT_DIR}" ]; then
|
||||
if [ -d "${CHROOT_DIR}/proc" ]; then
|
||||
echo "Unmounting ${CHROOT_DIR}/proc"
|
||||
umount "${CHROOT_DIR}/proc"
|
||||
fi
|
||||
|
||||
echo "Umounting bind to ${CHROOT_PKGS_DIR}"
|
||||
umount "${CHROOT_PKGS_DIR}" || exit 1
|
||||
CHROOT_PKGS_DIR="${CHROOT_DIR}/var/lib/entropy/client/packages"
|
||||
if [ -d "${CHROOT_PKGS_DIR}" ]; then
|
||||
echo "Umounting bind to ${CHROOT_PKGS_DIR}"
|
||||
umount "${CHROOT_PKGS_DIR}" || exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user