diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-16 11:36:09 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-16 11:37:38 +0200 |
commit | 6dafee8d6704957e123de1b51d3e406848f4aac8 (patch) | |
tree | a91bacfa73d9fd189d82fa9030b12a8af7a8dec0 /nixos/modules/virtualisation/qemu-vm.nix | |
parent | e0db0aaa4d4a9169b5e1f4d1d6e23d6dffc5d0ab (diff) | |
download | nixpkgs-6dafee8d6704957e123de1b51d3e406848f4aac8.tar nixpkgs-6dafee8d6704957e123de1b51d3e406848f4aac8.tar.gz nixpkgs-6dafee8d6704957e123de1b51d3e406848f4aac8.tar.bz2 nixpkgs-6dafee8d6704957e123de1b51d3e406848f4aac8.tar.lz nixpkgs-6dafee8d6704957e123de1b51d3e406848f4aac8.tar.xz nixpkgs-6dafee8d6704957e123de1b51d3e406848f4aac8.tar.zst nixpkgs-6dafee8d6704957e123de1b51d3e406848f4aac8.zip |
Fix runInMachine
It requires a writable /nix/store to store the build result. Also, wait until we've reached multi-user.target before doing the build, and do a sync at the end to ensure all data to $out is properly written. http://hydra.nixos.org/build/6496716
Diffstat (limited to 'nixos/modules/virtualisation/qemu-vm.nix')
-rw-r--r-- | nixos/modules/virtualisation/qemu-vm.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix index 5b521a45547..708b462e0e5 100644 --- a/nixos/modules/virtualisation/qemu-vm.nix +++ b/nixos/modules/virtualisation/qemu-vm.nix @@ -295,7 +295,7 @@ in boot.initrd.postMountCommands = '' - # Mark this as a NixOS machinex. + # Mark this as a NixOS machine. mkdir -p $targetRoot/etc echo -n > $targetRoot/etc/NIXOS @@ -303,7 +303,6 @@ in chmod 1777 $targetRoot/tmp mkdir -p $targetRoot/boot - mount -o remount,ro $targetRoot/nix/store ${optionalString cfg.writableStore '' mkdir -p /unionfs-chroot/ro-store mount --rbind $targetRoot/nix/store /unionfs-chroot/ro-store |