From 5b5b6f9f635adf88c2a1a3d4f60f87f2d4af9a4b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 9 Jan 2007 21:25:53 +0000 Subject: [PATCH] * Use a shell in the closure we just copied to the target. svn path=/nixos/trunk/; revision=7596 --- installer/nixos-installer.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer/nixos-installer.sh b/installer/nixos-installer.sh index b3889cac166..dabf2452e95 100644 --- a/installer/nixos-installer.sh +++ b/installer/nixos-installer.sh @@ -99,7 +99,8 @@ chroot $mountPoint @nix@/bin/nix-store --register-validity < @nixClosure@ # Create the required /bin/sh symlink; otherwise lots of things # (notably the system() function) won't work. mkdir -m 0755 -p $mountPoint/bin -ln -sf $(type -tp sh) $mountPoint/bin/sh +# !!! assuming that @shell@ is in the closure +ln -sf @shell@ $mountPoint/bin/sh # Enable networking in the chroot.