summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-export-rootfs
diff options
context:
space:
mode:
authorScott Garman <scott.a.garman@intel.com>2012-10-03 15:13:53 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-04 14:10:56 +0100
commitee76b805f96f00aec386a1c34d176eea7d66f526 (patch)
treed4c349576aab71ed241847308ec09a338e705215 /scripts/runqemu-export-rootfs
parent746a86758bccf5239e49db0a2f5fb71a53a2ebd5 (diff)
downloadpoky-ee76b805f96f00aec386a1c34d176eea7d66f526.tar.gz
runqemu: allow multiple unfs instances to run simultaneously
A miscalculation in the way the port numbers of mountd and nfsd are created was causing conflicts when starting multiple instances of qemu using userspace nfs. Thanks to Rudolf Streif for proposing this fix! Fixes [YOCTO #1969] (From OE-Core rev: 94eef772c283170d19ba92c8de0054cd093fc487) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-export-rootfs')
-rwxr-xr-xscripts/runqemu-export-rootfs4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/runqemu-export-rootfs b/scripts/runqemu-export-rootfs
index 90edc8a216..bbdaf5ba0f 100755
--- a/scripts/runqemu-export-rootfs
+++ b/scripts/runqemu-export-rootfs
@@ -82,9 +82,9 @@ NFS_MOUNTPROG=$[ 21111 + $NFS_INSTANCE ]
82# rpc.nfsd RPC port 82# rpc.nfsd RPC port
83NFS_NFSPROG=$[ 11111 + $NFS_INSTANCE ] 83NFS_NFSPROG=$[ 11111 + $NFS_INSTANCE ]
84# NFS port number 84# NFS port number
85NFS_PORT=$[ 3049 + $NFS_INSTANCE ] 85NFS_PORT=$[ 3049 + 2 * $NFS_INSTANCE ]
86# mountd port number 86# mountd port number
87MOUNT_PORT=$[ 3048 + $NFS_INSTANCE ] 87MOUNT_PORT=$[ 3048 + 2 * $NFS_INSTANCE ]
88 88
89## For debugging you would additionally add 89## For debugging you would additionally add
90## --debug all 90## --debug all