mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
* 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:
parent
1f8e6d4814
commit
88a5d8915a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue