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
This commit is contained in:
Lluís Batlle i Rossell 2011-12-26 16:40:13 +00:00
parent 2c77b292a6
commit 0de75cde39
1 changed files with 5 additions and 0 deletions

View File

@ -133,6 +133,11 @@ with pkgs.lib;
if [ -n "$failed" ]; then if [ -n "$failed" ]; then
echo "warning: the following filesystems could not be unmounted:" echo "warning: the following filesystems could not be unmounted:"
for mp in $failed; do echo " $mp"; done 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 sleep 5
fi fi