From 5258bbe4c97113dfa663a32408691fc93ee2dd9b Mon Sep 17 00:00:00 2001 From: aszlig Date: Sun, 16 Feb 2014 22:27:39 +0100 Subject: [PATCH] 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 --- pkgs/build-support/vm/windows/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/build-support/vm/windows/default.nix b/pkgs/build-support/vm/windows/default.nix index 36795fbb78e..bb0833beec2 100644 --- a/pkgs/build-support/vm/windows/default.nix +++ b/pkgs/build-support/vm/windows/default.nix @@ -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"; };