* Fix "error: the group nixbld' specified in build-users-group' does

not exist" during nixos-install.

svn path=/nixos/trunk/; revision=34103
This commit is contained in:
Eelco Dolstra 2012-05-15 13:50:36 +00:00
parent ea3cfc9287
commit 560262dae0

@ -153,12 +153,6 @@ NIX_PATH="/mnt$srcs/nixos:nixos-config=/mnt$NIXOS_CONFIG" NIXOS_CONFIG= \
-p /nix/var/nix/profiles/system -f '<nixos>' --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