An option for times when I only want to init Nix in chroot and build system semi-manually.

svn path=/nixos/trunk/; revision=15509
This commit is contained in:
Michael Raskin 2009-05-09 07:34:20 +00:00
parent 5cbcb9762d
commit 5b368b22bf

View File

@ -135,6 +135,10 @@ if test -n "@nixpkgsURL@" -a ${NIXOS_PULL:-1} != 0; then
chroot $mountPoint @nix@/bin/nix-pull @nixpkgsURL@/MANIFEST || true
fi
if test -n "$NIXOS_PREPARE_CHROOT_ONLY"; then
echo "User requested only to prepare chroot. Exiting."
exit 0;
fi
# Build the specified Nix expression in the target store and install
# it into the system configuration profile.