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:
parent
d16dae8d32
commit
5258bbe4c9
|
@ -23,8 +23,10 @@ let
|
||||||
"net use X: '\\\\192.168.0.2\\xchg' /persistent:yes"
|
"net use X: '\\\\192.168.0.2\\xchg' /persistent:yes"
|
||||||
"mkdir -p /nix/store"
|
"mkdir -p /nix/store"
|
||||||
"mount -o bind /cygdrive/s /nix/store"
|
"mount -o bind /cygdrive/s /nix/store"
|
||||||
|
"echo /cygdrive/s /nix/store none bind 0 0 >> /etc/fstab"
|
||||||
"mkdir -p /tmp/xchg"
|
"mkdir -p /tmp/xchg"
|
||||||
"mount -o bind /cygdrive/x /tmp/xchg"
|
"mount -o bind /cygdrive/x /tmp/xchg"
|
||||||
|
"echo /cygdrive/x /tmp/xchg none bind 0 0 >> /etc/fstab"
|
||||||
];
|
];
|
||||||
suspendTo = "state.gz";
|
suspendTo = "state.gz";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue