generic-poky/scripts
Jason Wessel 76551e02ed runqemu: Fix TAP='TUNSETGROUP: Invalid argument' by falling back to tunctl -u
By default the runqemu script tries to set the group permissions on any
tap device it creates.  The TUNSETGROUP ioctl is not implemented on some
popular host enterprise linux distributions.

Internally the script will exit as follows:

++ /opt/qemux86/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/tunctl -b -g 100
+ TAP='TUNSETGROUP: Invalid argument'
+ STATUS=1
+ '[' 1 -ne 0 ']'
+ echo 'tunctl failed:'
tunctl failed:
+ echo TUNSETGROUP: Invalid argument

This patch implements a fallback to using the userid as the owner of
the tap device which is supported by all 2.6 kernels, the default remains
to try and use the groupid first.

(From OE-Core rev: 3af2bc59776fb738bd795160512a2f3f49ce6d32)

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-05-03 15:48:09 +01:00
..
contrib python: multilib header support. 2012-04-11 12:48:37 +01:00
jhbuild Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
lib/bsp yocto-bsp: remove kernel26 machine feature from templates 2012-04-17 14:15:45 +01:00
native-intercept native.bbclass: Add a simple chown intercept command 2011-06-23 21:08:01 +01:00
qemuimage-tests sanitytest: use different option for command ps from busybox and procps 2011-11-18 10:47:15 +00:00
README Further cleanup of various poky references 2011-04-21 12:56:16 +01:00
bitbake scripts/bitbake: add/fix some comments 2012-03-31 17:59:10 +01:00
bitbake-prserv-tool scripts/prserv-tool: Adepted to new bitbake cache. 2012-02-28 12:27:23 +00:00
buildhistory-diff buildhistory_analysis: use bb.utils.explode_dep_versions 2012-03-21 15:33:06 +00:00
cleanup-workdir cleanup-workdir: add a script to clean up WORKDIR 2012-03-21 15:33:04 +00:00
combo-layer scripts/combo-layer: handle diffs in commit messages 2012-03-23 12:13:08 +00:00
combo-layer-hook-default.sh scripts/combo-layer: fix still overzealous regex in default hook script 2011-09-21 13:42:49 +01:00
combo-layer.conf.example scripts/combo-layer: add branch option to example config 2012-02-21 17:00:46 +00:00
create-lsb-image create-lsb-iamge:Fix bugs 2011-05-04 00:54:39 +01:00
create-pull-request create-pull-request: Assume remote branch from local branch 2012-04-10 13:31:58 +01:00
create-recipe create-recipe: base on autospectacle.pl to create recipe file 2012-05-03 15:48:00 +01:00
gen-site-config siteconfig: generate configuration data caches for autoconf 2010-09-03 10:50:02 +01:00
help2man Remove help2man dependency 2011-10-04 13:46:19 +01:00
hob scripts/hob: disable sanity checks when launching 2012-04-23 23:04:43 +01:00
multilib_header_wrapper.h multilib_header.bbclass: Add oe_multilib_header wrapper 2011-07-27 15:45:47 +01:00
oe-buildenv-internal Various typoes fixed, all comments or output strings. 2012-03-26 12:13:05 +01:00
oe-find-native-sysroot scripts: Show sensible warning messages if expected binaries don't exist 2011-09-02 14:21:30 +01:00
oe-git-proxy-command scripts/oe-setup-builddir: Fix up OE-Core/Poky mismatch for now (and fix permissions) 2011-04-21 19:19:33 +01:00
oe-git-proxy-socks-command scripts/oe-git-proxy-socks-command: Add fallback to use nc 2012-03-02 12:25:19 +00:00
oe-git-proxy-socks.c scripts/oe-setup-builddir: Fix up OE-Core/Poky mismatch for now (and fix permissions) 2011-04-21 19:19:33 +01:00
oe-setup-builddir Various typoes fixed, all comments or output strings. 2012-03-26 12:13:05 +01:00
oe-setup-rpmrepo scripts/oe-setup-rpmrepo: use setup_tmpdir from runqemu 2011-09-28 21:41:44 +01:00
oe-trim-schemas scripts/oe-setup-builddir: Fix up OE-Core/Poky mismatch for now (and fix permissions) 2011-04-21 19:19:33 +01:00
qemuimage-testlib scripts/qemuimage-testlib: fix typos 2012-03-21 15:33:04 +00:00
rootfs_rpm-extract-postinst.awk meta/classes/rootfs_rpm.bbclass: re implement base on rpm5 2010-07-24 00:46:57 +01:00
rpm-createsolvedb.py package_rpm: Only rebuild the indexes if the packages have changed 2012-04-30 11:37:30 +01:00
rpm2cpio.sh rpm2cpio.sh: make compression tests case-insensitive 2012-01-03 12:14:39 +00:00
runqemu runqemu: set console=ttyS0 when running with nographic option 2012-03-29 22:57:29 +01:00
runqemu-addptable2image scripts/oe-setup-builddir: Fix up OE-Core/Poky mismatch for now (and fix permissions) 2011-04-21 19:19:33 +01:00
runqemu-export-rootfs Allow user mode NFS server to run without rpcbind / portmap 2011-10-10 10:00:08 +01:00
runqemu-extract-sdk scripts: Show sensible warning messages if expected binaries don't exist 2011-09-02 14:21:30 +01:00
runqemu-gen-tapdevs scripts: Show sensible warning messages if expected binaries don't exist 2011-09-02 14:21:30 +01:00
runqemu-ifdown Further cleanup of various poky references 2011-04-21 12:56:16 +01:00
runqemu-ifup runqemu: Fix TAP='TUNSETGROUP: Invalid argument' by falling back to tunctl -u 2012-05-03 15:48:09 +01:00
runqemu-internal runqemu: Fix TAP='TUNSETGROUP: Invalid argument' by falling back to tunctl -u 2012-05-03 15:48:09 +01:00
runqemu.README scripts/runqemu.README: Clean this up to accurately reflect what the runqemu command now does 2011-04-21 12:56:13 +01:00
send-pull-request scripts/send-pull-request: fix typo 2011-12-12 21:50:20 +00:00
sstate-cache-management.sh sstate-cache-management.sh: fixes and enhancement 2012-03-30 17:20:23 +01:00
swabber-strace-attach image-swab: Convert to attach strace to the process to obtain the required swabber data 2011-02-10 11:51:48 +00:00
yocto-bsp yocto-bsp: new script 2012-03-22 19:21:15 +00:00
yocto-kernel yocto-kernel: new script 2012-03-22 19:21:15 +00:00

README

This directory contains Various useful scripts for working with OE builds