]> code.ossystems Code Review - openembedded-core.git/commitdiff
runqemu-gen-tapdevs: Add note about NetworkManager & tap devices
authorSaul Wold <sgw@linux.intel.com>
Tue, 5 Apr 2016 00:11:56 +0000 (17:11 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Apr 2016 10:26:27 +0000 (11:26 +0100)
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>
scripts/runqemu-gen-tapdevs

index d3b27be291540935ef87842d531ab809e4ca771c..624deacb7011160032f6008e42c442d325e3c7a3 100755 (executable)
@@ -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.