Permalink
Browse files

umount_all: also get rid of loopback mount of ISO

  • Loading branch information...
1 parent 3106869 commit 63cf502dc876608b392dd45a0f2b3138e5c54ebd @mika mika committed May 25, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 grml-live
View
@@ -157,6 +157,10 @@ umount_all() {
umount $CHROOT_OUTPUT/dev/pts 2>/dev/null || /bin/true
umount $CHROOT_OUTPUT/dev 2>/dev/null || /bin/true
+ if [ -n "$EXTRACT_ISO_NAME" ] ; then
+ umount "$EXTRACT_ISO_NAME" 2>/dev/null || /bin/true
+ fi
+
# certain FAI versions sadly leave a ramdisk behind, so better safe than sorry
if [ -x /usr/lib/fai/mkramdisk ] ; then
/usr/lib/fai/mkramdisk -u "$(readlink -f ${CHROOT_OUTPUT}/var/lib/dpkg)" >/dev/null 2>&1 || /bin/true

0 comments on commit 63cf502

Please sign in to comment.