From 0de75cde39e36872bda85e66a4ea8a86993e4108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Mon, 26 Dec 2011 16:40:13 +0000 Subject: [PATCH] Asking for an interactive shell in case of error umounting filesystems. I've not tested it; sometimes I hit the trouble, but not always. svn path=/nixos/trunk/; revision=31104 --- modules/system/upstart-events/shutdown.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/system/upstart-events/shutdown.nix b/modules/system/upstart-events/shutdown.nix index 32966f03cdb..78d848df663 100644 --- a/modules/system/upstart-events/shutdown.nix +++ b/modules/system/upstart-events/shutdown.nix @@ -133,6 +133,11 @@ with pkgs.lib; 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