poky/scripts
Cody P Schafer 6bb9860ef7 runqemu-export-rootfs: don't change RPC ports
RPC ports (also known as rpc program numbers) are values:

 - given to rpcbind (aka portmapper) to allow nfsv3 clients that don't
   know the tcp/udp port number of nfsd and mountd to look it up the
   tcp/udp port number, and to

 - allow a single transport (ie: tcp/udp port) to provide multiple
   sunrpc services.

OE has carried patches to nfsutils & linux for some time to support the
mountprog & nfsprog options.

In the case of runqemu-export-rootfs, we don't need to use custom rpc
program numbers because runqemu-export-rootfs tells unfsd not to
register with the portmapper, and unfsd runs the nfs and mount rpc
services on tcp/udp ports unfsd binds itself (iow: the tcp/udp ports are
not shared in the sunrpc sense).

Linux's nfs client does not query rpcbind when tcp/udp port numbers are
specified (in net/sunrpc/clnt.c, call_bind checks for the tcp/udp port
with xprt_bound() and skips the call to rpcbind if xprtsock.c's
xs_setup_udp() or xs_setup_tcp() has found a non-zero tcp/udp port).

The program numbers _are_ sent over the mount & nfs protocol (really,
over sunrpc), and checked to match at both ends. As a result, even when
rpcbind is unused, using different program numbers in unfsd vs linux
nfs client causes mounts to fail (and nfsroot mounts to timeout).

The result is that specifying custom program numbers in
runqemu-export-rootfs doesn't solve any conflicts, it simply requires
that users of runqemu-export-rootfs carry a kernel patch & adds 2 extra
parameters to the kernel command line unnecessarily.

Change runqemu-export-rootfs to use the default program numbers.

For now, I have not dropped the custom program number patches to linux,
nfs-utils, and unfsd just in case someone is using them in a
non-runqemu-export-rootfs context.

CC: Bruce Ashfield <bruce.ashfield@gmail.com>
CC: Mark Hatle <mark.hatle@windriver.com>
(From OE-Core rev: 9c91df324dfe58273f5a1d1d33dba1d34a180db7)

Signed-off-by: Cody P Schafer <dev@codyps.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-06-12 15:08:32 +01:00
..
contrib python3: add python3-modules-native to RPROVIDES for python3-native 2017-06-06 19:52:26 +01:00
lib devtool/standard: Fix lock in _prep_extract_operation 2017-06-12 15:08:30 +01:00
native-intercept
postinst-intercepts update_gio_module_cache: Do not chown a non-existing file 2017-04-05 23:22:12 +01:00
pybootchartgui pybootchartgui: support reading reduced /proc logs 2016-12-07 10:38:00 +00:00
tiny scripts: python3 fixes and new tool ksum 2017-01-16 18:05:14 +00:00
bitbake-prserv-tool bitbake-prserv-tool: check file name 2015-11-25 07:50:30 +00:00
bitbake-whatchanged scripts: python3: change python to python3 in shebang 2016-06-03 13:13:29 +01:00
buildhistory-collect-srcrevs buildhistory-collect-srcrevs: Fix multiple SRCREV definitions 2016-10-28 16:15:17 +01:00
buildhistory-diff buildhistory-diff: add option to compare actual signature differences 2017-04-11 18:10:17 +01:00
buildstats-diff buildstats-diff: show more graceful error messages 2017-06-09 17:12:14 +01:00
combo-layer combo-layer: handle file_exclude matching dirs 2016-10-28 16:15:21 +01:00
combo-layer-hook-default.sh combo-layer-hook-default.sh: handle patches without Signed-off-by 2015-03-20 11:21:25 +00:00
combo-layer.conf.example combo-layer: partial import for '--history init' 2015-03-20 11:21:24 +00:00
cp-noerror scripts: python3: change python to python3 in shebang 2016-06-03 13:13:29 +01:00
create-pull-request create-pull-request: support format-patch options 2017-05-23 17:45:35 +01:00
crosstap crosstap: Changes to support Recipe specific sysroot 2017-03-08 11:52:56 +00:00
devtool devtool: check locale and refuse to start if it isn't UTF-8 2017-01-23 12:05:22 +00:00
gen-lockedsig-cache gen-lockedsig-cache: catch os.link error 2017-03-22 11:35:21 +00:00
gen-site-config
lnr scripts/lnr: update for python3 2016-06-01 12:47:10 +01:00
multilib_header_wrapper.h multilib_header: Update wrapper to handle arm 32/64 bit 2017-03-31 10:10:29 +01:00
oe-build-perf-report oe-build-perf-report: implement --dump-buildstats 2017-05-23 17:45:36 +01:00
oe-build-perf-test oe-build-perf-test: pack all buildstat in one file 2017-03-27 08:15:06 +01:00
oe-buildenv-internal oe-buildenv-internal: show usage output 2016-12-13 22:55:21 +00:00
oe-check-sstate devtool/recipetool/meta: Adapt to bitbake API changes for multi-configuration builds 2016-08-18 10:07:23 +01:00
oe-find-native-sysroot oe-find-native-sysroot: don't clear OECORE_NATIVE_SYSROOT 2017-04-29 11:17:22 +01:00
oe-git-archive scripts/oe-git-archive: implement --notes 2017-03-27 08:15:06 +01:00
oe-git-proxy oe-git-proxy: create usage output 2016-12-13 22:55:21 +00:00
oe-gnome-terminal-phonehome terminal: Fix gnome-terminal to work with recent versions 2016-07-08 10:50:18 +01:00
oe-pkgdata-util scripts: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
oe-publish-sdk oe-publish-sdk: add pyshtables.py to .gitignore 2017-01-31 14:43:00 +00:00
oe-run-native oe-run-native: print more error messages 2017-04-14 23:25:54 +01:00
oe-selftest scripts/oe-{self,}test: Logger change default stream to stdout 2017-06-06 19:02:44 +01:00
oe-setup-builddir oe-setup-builddir: create usage output 2016-12-13 22:55:20 +00:00
oe-setup-rpmrepo scripts/oe-setup-rpmrepo: replace createrepo with createrepo_c 2017-03-14 14:42:17 +00:00
oe-test scripts/oe-{self,}test: Logger change default stream to stdout 2017-06-06 19:02:44 +01:00
oe-trim-schemas oe-trim-schemas: create usage output 2016-12-13 22:55:20 +00:00
oepydevshell-internal.py oepydevshell-internal.py: standardize usage output 2016-12-13 22:55:21 +00:00
opkg-query-helper.py scripts: python3: change python to python3 in shebang 2016-06-03 13:13:29 +01:00
pythondeps scripts: python3: change python to python3 in shebang 2016-06-03 13:13:29 +01:00
README
recipetool scripts: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
relocate_sdk.py relocate_sdk.py: skip debug files from relocation 2017-03-08 11:52:57 +00:00
rootfs_rpm-extract-postinst.awk
rpm2cpio.sh scripts/rpm2cpio.sh: replace 5.x version with 4.x version 2017-03-14 14:42:17 +00:00
runqemu scripts: Fix return value checks from subprocess.call()'s 2017-06-03 23:46:06 +01:00
runqemu-addptable2image
runqemu-export-rootfs runqemu-export-rootfs: don't change RPC ports 2017-06-12 15:08:32 +01:00
runqemu-extract-sdk oe-find-native-sysroot: work with RSS 2017-04-13 10:54:10 +01:00
runqemu-gen-tapdevs runqemu-gen-tapdevs: fix runqemu-ifup script call 2017-04-29 11:17:22 +01:00
runqemu-ifdown runqemu: use bindir_native property to run ifup/down scripts 2017-04-13 10:54:10 +01:00
runqemu-ifup runqemu: use bindir_native property to run ifup/down scripts 2017-04-13 10:54:10 +01:00
runqemu.README scripts/runqemu.README: fix typo 2017-05-18 14:01:47 +01:00
send-error-report send-error-report: encode data to bytes 2016-06-03 13:13:30 +01:00
send-pull-request scripts/send-pull-request: Avoid multiple chain headers 2016-12-07 10:37:59 +00:00
sstate-cache-management.sh scripts/sstate-cache-management.sh: Change wording 2016-02-15 16:28:43 +00:00
sstate-diff-machines.sh sstate-diff-machines.sh: Replace MACHINE_ARCH only at the beginning and separated with dash 2017-06-06 19:02:43 +01:00
sstate-sysroot-cruft.sh sstate-sysroot-cruft: Add /etc/ld.so.conf to whitelist 2016-10-28 16:15:19 +01:00
sysroot-relativelinks.py sysroot-relativelinks: also consider links to dirs on the host 2017-03-29 16:37:27 +01:00
task-time task-time: Add simple buildstats analysis script 2016-11-06 23:35:36 +00:00
test-dependencies.sh test-dependencies.sh: Strip also '\.bb: .*' before adding failed recipe to list of failed 2016-10-28 16:15:19 +01:00
test-reexec
test-remote-image scripts: python3: change python to python3 in shebang 2016-06-03 13:13:29 +01:00
verify-bashisms verify-bashisms: support warnings with more than one line of source code 2017-01-31 15:28:41 +00:00
wic wic: Use argparse instead of optparse 2017-05-23 17:45:35 +01:00
yocto-bsp yocto-bsp: Refactor script to use argparse instead of optparse 2016-07-07 13:38:13 +01:00
yocto-compat-layer-wrapper scripts/yocto-compat-layer-wrapper: Use realpath of output_log 2017-06-09 17:12:14 +01:00
yocto-compat-layer.py scripts/yocto-compat-layer.py: Return non-zero when layer test fail 2017-06-09 17:12:14 +01:00
yocto-kernel scripts: Fixed typo in parameter that was causing exception 2016-07-07 13:38:13 +01:00
yocto-layer scripts: Fixed typo in parameter that was causing exception 2016-07-07 13:38:13 +01:00

This directory contains Various useful scripts for working with OE builds