From 5b368b22bf0f65d14080738cf6f8f44225be1705 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sat, 9 May 2009 07:34:20 +0000 Subject: [PATCH] An option for times when I only want to init Nix in chroot and build system semi-manually. svn path=/nixos/trunk/; revision=15509 --- installer/nixos-install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/installer/nixos-install.sh b/installer/nixos-install.sh index 1784b4357f1..b90ffe4145c 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.