From f1dde44ac15e0f3fcea27cf72628b8ab8f0dedf9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 14 Jul 2010 14:18:27 +0000 Subject: [PATCH] * Added an action `nixos-rebuild pull' to just pull the Nixpkgs channel manifest and exit. Useful if you don't want to use nix-channel. svn path=/nixos/trunk/; revision=22601 --- modules/installer/tools/nixos-rebuild.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/installer/tools/nixos-rebuild.sh b/modules/installer/tools/nixos-rebuild.sh index 6ed294ebf64..4d01ff53f89 100644 --- a/modules/installer/tools/nixos-rebuild.sh +++ b/modules/installer/tools/nixos-rebuild.sh @@ -23,6 +23,7 @@ The operation is one of the following: build-vm: build a virtual machine containing the configuration (useful for testing) dry-run: just show what store paths would be built/downloaded + pull: just pull the Nixpkgs channel manifest and exit Options: @@ -63,7 +64,7 @@ while test "$#" -gt 0; do --help) showSyntax ;; - switch|boot|test|build|dry-run|build-vm) + switch|boot|test|build|dry-run|build-vm|pull) action="$i" ;; --install-grub) @@ -142,6 +143,8 @@ if test -n "$pullManifest"; then done fi +if [ "$action" = pull ]; then exit 0; fi + # First build Nix, since NixOS may require a newer version than the # current one. Of course, the same goes for Nixpkgs, but Nixpkgs is