From 5cff1db403568d52b77990c1fe108c41a32c4b1e Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Mon, 18 May 2009 12:03:11 +0000 Subject: [PATCH] Synced with trunk @ 15509 svn path=/nixos/branches/modular-nixos/; revision=15642 --- installer/nixos-install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/installer/nixos-install.sh b/installer/nixos-install.sh index 1784b4357f19..b90ffe4145c9 100644 --- a/installer/nixos-install.sh +++ b/installer/nixos-install.sh @@ -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.