diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-11-23 00:57:39 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-23 12:05:22 +0000 |
commit | 5ea3627dbb61ab065be8737c46007d7d8d7f3501 (patch) | |
tree | f62d9a42995de48e02fa940e14a7e2e917b7a49f /scripts/runqemu-export-rootfs | |
parent | c32720422e81f3965c57e80579892a0740453bbf (diff) | |
download | poky-5ea3627dbb61ab065be8737c46007d7d8d7f3501.tar.gz |
runqemu: support multiple qemus running when nfs
Fixed:
* In build1:
$ runqemu nfs qemux86-64
In build2:
$ runqemu nfs qemux86-64
It would fail before since the port numerbs and conf files are
conflicted, now make runqemu-export-rootfs work together with runqemu to
fix the problem.
* And we don't need export PSEUDO_LOCALSTATEDIR in runqemu, the
runqemu-export-rootfs can handle it well based on NFS_EXPORT_DIR.
* Remove "async" option from unfsd to fix warning in syslog:
Warning: unknown exports option `async' ignored
* Fixed typos
Both slirp and tap can work.
(From OE-Core rev: 84b2281595bbdb497daa42640e3ee4658bf0bed8)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-export-rootfs')
-rwxr-xr-x | scripts/runqemu-export-rootfs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/runqemu-export-rootfs b/scripts/runqemu-export-rootfs index 0dd3eba8b6..7ebc07194d 100755 --- a/scripts/runqemu-export-rootfs +++ b/scripts/runqemu-export-rootfs | |||
@@ -78,13 +78,13 @@ if [ ! -d "$PSEUDO_LOCALSTATEDIR" ]; then | |||
78 | fi | 78 | fi |
79 | 79 | ||
80 | # rpc.mountd RPC port | 80 | # rpc.mountd RPC port |
81 | MOUNTD_RPCPORT=$[ 21111 + $NFS_INSTANCE ] | 81 | MOUNTD_RPCPORT=${MOUNTD_RPCPORT:=$[ 21111 + $NFS_INSTANCE ]} |
82 | # rpc.nfsd RPC port | 82 | # rpc.nfsd RPC port |
83 | NFSD_RPCPORT=$[ 11111 + $NFS_INSTANCE ] | 83 | NFSD_RPCPORT=${NFSD_RPCPORT:=$[ 11111 + $NFS_INSTANCE ]} |
84 | # NFS server port number | 84 | # NFS server port number |
85 | NFSD_PORT=$[ 3049 + 2 * $NFS_INSTANCE ] | 85 | NFSD_PORT=${NFSD_PORT:=$[ 3049 + 2 * $NFS_INSTANCE ]} |
86 | # mountd port number | 86 | # mountd port number |
87 | MOUNTD_PORT=$[ 3048 + 2 * $NFS_INSTANCE ] | 87 | MOUNTD_PORT=${MOUNTD_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 |
@@ -109,7 +109,7 @@ case "$1" in | |||
109 | fi | 109 | fi |
110 | 110 | ||
111 | echo "Creating exports file..." | 111 | echo "Creating exports file..." |
112 | echo "$NFS_EXPORT_DIR (rw,async,no_root_squash,no_all_squash,insecure)" > $EXPORTS | 112 | echo "$NFS_EXPORT_DIR (rw,no_root_squash,no_all_squash,insecure)" > $EXPORTS |
113 | 113 | ||
114 | echo "Starting User Mode nfsd" | 114 | echo "Starting User Mode nfsd" |
115 | echo " $PSEUDO $PSEUDO_OPTS $OECORE_NATIVE_SYSROOT/usr/bin/unfsd $UNFSD_OPTS" | 115 | echo " $PSEUDO $PSEUDO_OPTS $OECORE_NATIVE_SYSROOT/usr/bin/unfsd $UNFSD_OPTS" |