From 4b3525fa80081e617f6dbb321480f3c15e6e3e89 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 28 Nov 2006 16:59:47 +0000 Subject: [PATCH] * Handle the case where nix-env is a symlink. svn path=/nixos/trunk/; revision=7162 --- boot/boot-stage-2-init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/boot-stage-2-init.sh b/boot/boot-stage-2-init.sh index ee18c320c97..5ad85bea27e 100644 --- a/boot/boot-stage-2-init.sh +++ b/boot/boot-stage-2-init.sh @@ -142,7 +142,7 @@ export PATH=$PATH export MODULE_DIR=$MODULE_DIR export NIX_CONF_DIR=/nix/etc/nix -source $(dirname $(type -tp nix-env))/../etc/profile.d/nix.sh +source $(dirname $(readlink -f $(type -tp nix-env)))/../etc/profile.d/nix.sh alias ll="ls -l"