summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2011-12-30 16:57:39 +0000
committerPeter Simons <simons@cryp.to>2011-12-30 16:57:39 +0000
commite91c6ea1ce01842b20b5e5fd9cc61c0fe3248312 (patch)
tree38705dd5e91174b13c704445dc0af8ea0981481a
parentb2eb54ae5a16207c0360c397ea0cc14fc9f1931d (diff)
downloadnixlib-e91c6ea1ce01842b20b5e5fd9cc61c0fe3248312.tar
nixlib-e91c6ea1ce01842b20b5e5fd9cc61c0fe3248312.tar.gz
nixlib-e91c6ea1ce01842b20b5e5fd9cc61c0fe3248312.tar.bz2
nixlib-e91c6ea1ce01842b20b5e5fd9cc61c0fe3248312.tar.lz
nixlib-e91c6ea1ce01842b20b5e5fd9cc61c0fe3248312.tar.xz
nixlib-e91c6ea1ce01842b20b5e5fd9cc61c0fe3248312.tar.zst
nixlib-e91c6ea1ce01842b20b5e5fd9cc61c0fe3248312.zip
modules/system/upstart-events/shutdown.nix: refer to bash binary with full path
Upstart won't find a "bash" binary in $PATH when those commands are run, so we
refer to it using an absolute path.

svn path=/nixos/trunk/; revision=31157
-rw-r--r--modules/system/upstart-events/shutdown.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/upstart-events/shutdown.nix b/modules/system/upstart-events/shutdown.nix
index 78d848df6639..8aa794378ed3 100644
--- a/modules/system/upstart-events/shutdown.nix
+++ b/modules/system/upstart-events/shutdown.nix
@@ -136,7 +136,7 @@ with pkgs.lib;
               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
+                ${pkgs.bashInteractive}/bin/bash -i < /dev/console &> /dev/console
               fi
               sleep 5
           fi