X-Git-Url: http://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=grml-live;h=47ee4ff4dd4c990489faeb57ac2ec67f35c44ed0;hp=d67ad710ad41ad8facb4b401d1cf8b1db5b0468e;hb=4309ce0fac1b2520705543aa69cc084932cbf800;hpb=8795132e3cc5937788a27947d2af7aa9881dcec3 diff --git a/grml-live b/grml-live index d67ad71..47ee4ff 100755 --- a/grml-live +++ b/grml-live @@ -436,8 +436,12 @@ else rm -rf "$CHROOT_OUTPUT"/var/log/fai/* fi + # make sure we don't leave any mounts - FAI doesn't remove them always umount $CHROOT_OUTPUT/proc 2>/dev/null || /bin/true umount $CHROOT_OUTPUT/sys 2>/dev/null || /bin/true + umount $CHROOT_OUTPUT/dev/pts 2>/dev/null || /bin/true + umount $CHROOT_OUTPUT/dev 2>/dev/null || /bin/true + [ -n "$MIRROR_DIRECTORY" ] && umount "${CHROOT_OUTPUT}/${MIRROR_DIRECTORY}" # notice: 'fai dirinstall' does not seem to exit appropriate, so: