Author: eelco
Date: 2010-06-14 00:18:54 +0000 (Mon, 14 Jun 2010)
New Revision: 22250

You can view the changes in this commit at:
   https://svn.nixos.org/viewvc/nix?rev=22250&view=rev

Modified:
   nixpkgs/trunk/pkgs/build-support/vm/default.nix

Log:
* Support repeated mounting of the CIFS share.  Necessary because the
  mount tends to timeout if the host is heavily loaded.


Changes:

Modified: nixpkgs/trunk/pkgs/build-support/vm/default.nix
===================================================================
--- nixpkgs/trunk/pkgs/build-support/vm/default.nix     2010-06-13 23:49:16 UTC 
(rev 22249)
+++ nixpkgs/trunk/pkgs/build-support/vm/default.nix     2010-06-14 00:18:54 UTC 
(rev 22250)
@@ -220,7 +220,7 @@
       $QEMU_OPTS
   '';
 
-  
+
   vmRunCommand = qemuCommand: writeText "vm-run" ''
     export > saved-env
 
@@ -253,7 +253,7 @@
     #! ${bash}/bin/sh
     diskImage=$diskImage
     TMPDIR=$TMPDIR
-    ${socat}/bin/socat unix-listen:$TMPDIR/samba exec:'${samba}/sbin/smbd -s 
$TMPDIR/smb.conf' &
+    ${socat}/bin/socat unix-listen:$TMPDIR/samba system:'while true; do 
${samba}/sbin/smbd -s $TMPDIR/smb.conf; done' &
     while [ ! -e $TMPDIR/samba ]; do sleep 0.1; done # ugly
     ${qemuCommand}
     EOF

_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to