vm/windows: Create fstab entries in suspended VM.

Cygwin initializes mounts on _every_ login via SSH and doesn't keep them
consistently like on Unix systems, that's why we need to also add fstab
entries for the bind mounts to the store and xchg shares.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2014-02-16 22:27:39 +01:00
parent d16dae8d32
commit 5258bbe4c9
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -23,8 +23,10 @@ let
"net use X: '\\\\192.168.0.2\\xchg' /persistent:yes"
"mkdir -p /nix/store"
"mount -o bind /cygdrive/s /nix/store"
"echo /cygdrive/s /nix/store none bind 0 0 >> /etc/fstab"
"mkdir -p /tmp/xchg"
"mount -o bind /cygdrive/x /tmp/xchg"
"echo /cygdrive/x /tmp/xchg none bind 0 0 >> /etc/fstab"
];
suspendTo = "state.gz";
};