summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-internal
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2011-10-05 15:26:30 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-10-10 09:00:08 (GMT)
commitae6133572f317b4c7cb8046aa1b10bb83a2a58ba (patch)
tree88b77d361e1e83be9f917277f0cd179662ae311b /scripts/runqemu-internal
parent639f138c3d2feff965e752cdb07c43bdfe415233 (diff)
downloadpoky-ae6133572f317b4c7cb8046aa1b10bb83a2a58ba.tar.gz
Allow user mode NFS server to run without rpcbind / portmap
and nfsroot mount without the need to talk to an RPC info server as long as the port numbers for mountd and nfsd are known in advance. This patch updates the qemu startup scripts and the user mode NFS server to have the ability to start without the need to use rpcbind or portmap services. (From OE-Core rev: 3b1346c607c41a2d592c48594457c32153cb2314) Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-xscripts/runqemu-internal16
1 files changed, 5 insertions, 11 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index ce3291f..2968ed9 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -258,21 +258,15 @@ fi
258if [ "$FSTYPE" = "nfs" ]; then 258if [ "$FSTYPE" = "nfs" ]; then
259 NFS_SERVER="192.168.7.1" 259 NFS_SERVER="192.168.7.1"
260 NFS_DIR=`echo $ROOTFS | sed 's/^[^:]*:\(.*\)/\1/'` 260 NFS_DIR=`echo $ROOTFS | sed 's/^[^:]*:\(.*\)/\1/'`
261 MOUNTD_PORT=$[ 21111 + $NFS_INSTANCE ] 261 MOUNTD_RPCPORT=$[ 21111 + $NFS_INSTANCE ]
262 NFSD_PORT=$[ 11111 + $NFS_INSTANCE ] 262 NFSD_RPCPORT=$[ 11111 + $NFS_INSTANCE ]
263 UNFS_OPTS="nfsvers=2,mountprog=$MOUNTD_PORT,nfsprog=$NFSD_PORT,udp" 263 NFSD_PORT=$[ 3049 + $NFS_INSTANCE ]
264 MOUNTD_PORT=$[ 3048 + $NFS_INSTANCE ]
265 UNFS_OPTS="nfsvers=2,mountprog=$MOUNTD_RPCPORT,nfsprog=$NFSD_RPCPORT,udp,port=$NFSD_PORT,mountport=$MOUNTD_PORT"
264 266
265 PSEUDO_LOCALSTATEDIR=~/.runqemu-sdk/pseudo 267 PSEUDO_LOCALSTATEDIR=~/.runqemu-sdk/pseudo
266 export PSEUDO_LOCALSTATEDIR 268 export PSEUDO_LOCALSTATEDIR
267 269
268 rpcbind_running=`ps ax | grep rpcbind | grep -v grep | wc -l`
269 portmap_running=`ps ax | grep portmap | grep -v grep | wc -l`
270 if [[ $rpcbind_running == 0 && $portmap_running == 0 ]]; then
271 echo "You need to be running either rpcbind or portmap to continue"
272 cleanup
273 return
274 fi
275
276 # Start the userspace NFS server 270 # Start the userspace NFS server
277 echo "runqemu-export-rootfs restart $ROOTFS" 271 echo "runqemu-export-rootfs restart $ROOTFS"
278 runqemu-export-rootfs restart $ROOTFS 272 runqemu-export-rootfs restart $ROOTFS