From 560262dae0df4a87b5d0182a9b487826a7ff978b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 15 May 2012 13:50:36 +0000 Subject: [PATCH] * Fix "error: the group `nixbld' specified in `build-users-group' does not exist" during nixos-install. svn path=/nixos/trunk/; revision=34103 --- modules/installer/tools/nixos-install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/installer/tools/nixos-install.sh b/modules/installer/tools/nixos-install.sh index 836e5562ba5..5937883b86b 100644 --- a/modules/installer/tools/nixos-install.sh +++ b/modules/installer/tools/nixos-install.sh @@ -153,12 +153,6 @@ NIX_PATH="/mnt$srcs/nixos:nixos-config=/mnt$NIXOS_CONFIG" NIXOS_CONFIG= \ -p /nix/var/nix/profiles/system -f '' --set -A system --show-trace -# We're done building/downloading, so we don't need the /etc bind -# mount anymore. In fact, below we want to modify the target's /etc. -umount $mountPoint/etc/nixos -umount $mountPoint/etc - - # Copy the NixOS/Nixpkgs sources to the target as the initial contents # of the NixOS channel. echo "copying NixOS/Nixpkgs sources..." @@ -171,6 +165,12 @@ mkdir -m 0700 -p $mountPoint/root/.nix-defexpr ln -s /nix/var/nix/profiles/per-user/root/channels $mountPoint/root/.nix-defexpr/channels +# We're done building/downloading, so we don't need the /etc bind +# mount anymore. In fact, below we want to modify the target's /etc. +umount $mountPoint/etc/nixos +umount $mountPoint/etc + + # Grub needs an mtab. ln -sfn /proc/mounts $mountPoint/etc/mtab