about summary refs log tree commit diff
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2014-02-16 22:27:39 +0100
committeraszlig <aszlig@redmoonstudios.org>2014-02-26 04:51:59 +0100
commit5258bbe4c97113dfa663a32408691fc93ee2dd9b (patch)
treef5adb766fc9b7feb277e4009c010c72cee67fa51
parentd16dae8d3215c82070132694d82a1309d140f124 (diff)
downloadnixlib-5258bbe4c97113dfa663a32408691fc93ee2dd9b.tar
nixlib-5258bbe4c97113dfa663a32408691fc93ee2dd9b.tar.gz
nixlib-5258bbe4c97113dfa663a32408691fc93ee2dd9b.tar.bz2
nixlib-5258bbe4c97113dfa663a32408691fc93ee2dd9b.tar.lz
nixlib-5258bbe4c97113dfa663a32408691fc93ee2dd9b.tar.xz
nixlib-5258bbe4c97113dfa663a32408691fc93ee2dd9b.tar.zst
nixlib-5258bbe4c97113dfa663a32408691fc93ee2dd9b.zip
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>
-rw-r--r--pkgs/build-support/vm/windows/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/build-support/vm/windows/default.nix b/pkgs/build-support/vm/windows/default.nix
index 36795fbb78ed..bb0833beec28 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";
   };