Fix GCE image build.

(cherry picked from commit 98af87cd4abb0cd77e8a51cfdf6913a92d088784)
This commit is contained in:
Rob Vermaas 2015-01-05 09:31:22 +01:00
parent 0d12020a3f
commit ea9530b5c7
1 changed files with 3 additions and 2 deletions

View File

@ -63,11 +63,12 @@ in
# Register the paths in the Nix database.
printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \
chroot /mnt ${config.nix.package}/bin/nix-store --load-db
chroot /mnt ${config.nix.package}/bin/nix-store --load-db --option build-users-group ""
# Create the system profile to allow nixos-rebuild to work.
chroot /mnt ${config.nix.package}/bin/nix-env \
-p /nix/var/nix/profiles/system --set ${config.system.build.toplevel}
-p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} \
--option build-users-group ""
# `nixos-rebuild' requires an /etc/NIXOS.
mkdir -p /mnt/etc