qubeize-image: unmount image even after failed build

pull/1/head j_1df5f942
Marek Marczykowski 12 years ago
parent bf43862f3b
commit 1df5f9426a

@ -27,6 +27,13 @@ if [ $ID != 0 ] ; then
exit 1
fi
function cleanup() {
if grep -q " $PWD/mnt " /proc/mounts; then
umount mnt/proc mnt
fi
}
trap cleanup ERR
IMG=qubeized_images/$NAME-root.img
echo "--> Copying $CLEANIMG to $IMG..."

Loading…
Cancel
Save