aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2016-04-04 17:11:56 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-06 11:26:27 +0100
commit503a80de1cc9097fdc8f6b5b7d0e3a3991b0ecd2 (patch)
treed5426f6ead9699737b857372497232514bba4be4 /scripts
parent5e83a72f1ec834063d27b924bc7f9a047204cec6 (diff)
downloadopenembedded-core-contrib-503a80de1cc9097fdc8f6b5b7d0e3a3991b0ecd2.tar.gz
runqemu-gen-tapdevs: Add note about NetworkManager & tap devices
NetworkManager can clobber tap devices if left alone, this gives a note about how to set tap* as unmanaged [YOCTO #8587] Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu-gen-tapdevs9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/runqemu-gen-tapdevs b/scripts/runqemu-gen-tapdevs
index d3b27be291..624deacb70 100755
--- a/scripts/runqemu-gen-tapdevs
+++ b/scripts/runqemu-gen-tapdevs
@@ -85,6 +85,15 @@ for ((index=0; index < $COUNT; index++)); do
fi
done
+if [ $COUNT -gt 0 ]; then
+ echo "Note: For systems running NetworkManager, it's recommended"
+ echo "Note: that the tap devices be set as unmanaged in the"
+ echo "Note: NetworkManager.conf file. Add the following lines to"
+ echo "Note: /etc/NetworkManager/NetworkManager.conf"
+ echo "[keyfile]"
+ echo "unmanaged-devices=interface-name:tap*"
+fi
+
# The runqemu script will check for this file, and if it exists,
# will use the existing bank of tap devices without creating
# additional ones via sudo.