Author: viric
Date: Mon Dec 26 16:40:13 2011
New Revision: 31104
URL: https://nixos.org/websvn/nix/?rev=31104&sc=1

Log:
Asking for an interactive shell in case of error umounting filesystems. I've
not tested it; sometimes I hit the trouble, but not always.

Modified:
   nixos/trunk/modules/system/upstart-events/shutdown.nix

Modified: nixos/trunk/modules/system/upstart-events/shutdown.nix
==============================================================================
--- nixos/trunk/modules/system/upstart-events/shutdown.nix      Mon Dec 26 
16:06:20 2011        (r31103)
+++ nixos/trunk/modules/system/upstart-events/shutdown.nix      Mon Dec 26 
16:40:13 2011        (r31104)
@@ -133,6 +133,11 @@
           if [ -n "$failed" ]; then
               echo "warning: the following filesystems could not be 
unmounted:"
               for mp in $failed; do echo "  $mp"; done
+              echo Enter 'i' to launch a shell, or wait 10 seconds to continue.
+              read -t 10 A
+              if [ "$A" == "i" ]; then
+                bash -i < /dev/console &> /dev/console
+              fi
               sleep 5
           fi
 
_______________________________________________
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to