Adjust trap handling to get clean exit.
[grml-live.git] / grml-live
index 780bf3c..85b001c 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -154,7 +154,8 @@ bailout() {
   log "------------------------------------------------------------------------------"
   exit "$EXIT"
 }
-trap bailout 1 2 3 3 6 9 14 15 EXIT
+trap bailout 1 2 3 3 6 9 14 15
+trap umount_all EXIT
 # }}}
 
 # log file stuff {{{