mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
vm/windows: Reintroduce setting up /nix/store.
Now we're doing this at the point where we're saving the VM state. Unfortunately it's not quite right, because the controller VM is shut down _before_ we're saving the state, so the share gets disconnected despite autodisconnect being deactivated during setup. We can get around this issue by finally introducing the xchg share, which is the last item to be implemented before we can merge to master. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
aa65a7057f
commit
0ce1fd07fe
@ -17,6 +17,13 @@ let
|
||||
});
|
||||
|
||||
runAndSuspend = runInVM "winvm.img" {
|
||||
command = lib.concatStringsSep "; " [
|
||||
"set -e"
|
||||
"net config server /autodisconnect:-1"
|
||||
"net use S: '\\\\192.168.0.2\\nixstore' /persistent:yes"
|
||||
"mkdir -p /nix/store"
|
||||
"mount -o bind /cygdrive/s /nix/store"
|
||||
];
|
||||
suspendTo = "state.gz";
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user