* Support repeated mounting of the CIFS share. Necessary because the

mount tends to timeout if the host is heavily loaded.

svn path=/nixpkgs/trunk/; revision=22250
This commit is contained in:
Eelco Dolstra 2010-06-14 00:18:54 +00:00
parent 1f8e6d4814
commit 88a5d8915a

View File

@ -220,7 +220,7 @@ rec {
$QEMU_OPTS
'';
vmRunCommand = qemuCommand: writeText "vm-run" ''
export > saved-env
@ -253,7 +253,7 @@ rec {
#! ${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