mirror of
https://git.yoctoproject.org/poky
synced 2026-05-04 13:39:49 +02:00
runqemu: work with tap device names that end with a colon
On Fedora systems (and likely others), ifconfig returns interface names that end with a colon. Make sure we strip the colon off the tap device name before using it. This fixes [YOCTO #3028] (From OE-Core rev: 85ed217b603a86113dda11d952850e8ceed30795) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
2f0a82b8a9
commit
e46be72a8e
@@ -154,7 +154,7 @@ if [ ! -x "$IFCONFIG" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
POSSIBLE=`$IFCONFIG -a | grep '^tap' | awk '{print $1}'`
|
||||
POSSIBLE=`$IFCONFIG -a | grep '^tap' | awk '{print $1}' | sed s/://`
|
||||
TAP=""
|
||||
LOCKFILE=""
|
||||
for tap in $POSSIBLE; do
|
||||
|
||||
Reference in New Issue
Block a user