* Use a shell in the closure we just copied to the target.

svn path=/nixos/trunk/; revision=7596
This commit is contained in:
Eelco Dolstra 2007-01-09 21:25:53 +00:00
parent 37ab8be36f
commit 5b5b6f9f63

View file

@ -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.