diff options
Diffstat (limited to 'scripts/poky-qemu-internal')
-rwxr-xr-x | scripts/poky-qemu-internal | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal index 01486ccff..aac51b588 100755 --- a/scripts/poky-qemu-internal +++ b/scripts/poky-qemu-internal @@ -71,7 +71,12 @@ done if [ "$TAP" = "" ]; then GROUPID=`id -g` echo 'Setting up tap interface under sudo' - TAP=`sudo $QEMUIFUP $GROUPID` + TAP=`sudo $QEMUIFUP $GROUPID $NATIVE_SYSROOT_DIR` + if [ $? -ne 0 ]; then + # Re-run standalone to see verbose errors + sudo $QEMUIFUP $GROUPID $NATIVE_SYSROOT_DIR + return + fi LOCKFILE="" else echo "Using preconfigured tap device '$TAP'" @@ -79,7 +84,7 @@ fi release_lock() { if [ "$LOCKFILE" = "" ]; then - $QEMUIFDOWN $TAP + $QEMUIFDOWN $TAP $NATIVE_SYSROOT_DIR else echo "Releasing lockfile of preconfigured tap device '$TAP'" rm -f $LOCKFILE |