[OE-core] [PATCH] runqemu: Handle device names like tapX at NONE

Richard Purdie richard.purdie at linuxfoundation.org
Sun Aug 9 07:05:10 UTC 2015


ip list can return devices in the form tapX at NONE. If it does so,
ensure we handle that case correctly. Newer distros appear to do
this in some cases.

[YOCTO #8129]

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index 0ace485..d743322 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -179,7 +179,7 @@ else
                exit 1
         fi
 
-        POSSIBLE=`$IFCONFIG link | grep 'tap' | awk '{print $2}' | sed s/://`
+        POSSIBLE=`$IFCONFIG link | grep 'tap' | awk '{print $2}' | sed -e 's/://' -e 's/@.*//'`
         TAP=""
         LOCKFILE=""
         USE_PRECONF_TAP="no"





More information about the Openembedded-core mailing list