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:
aszlig 2014-02-16 01:46:28 +01:00
parent aa65a7057f
commit 0ce1fd07fe
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -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";
};