Patchwork [4/4] runqemu-internal: provide more info if a preconfigured tap is used

login
register
mail settings
Submitter Qi.Chen@windriver.com
Date Aug. 27, 2013, 7:08 a.m.
Message ID <5150aa69facaf05be255db2bc58bfc0687800880.1377587203.git.Qi.Chen@windriver.com>
Download mbox | patch
Permalink /patch/56693/
State New
Headers show

Comments

Qi.Chen@windriver.com - Aug. 27, 2013, 7:08 a.m.
From: Chen Qi <Qi.Chen@windriver.com>

We should provide the user more information if a preconfigured tap
is used. This is because the user might have manually set up the tap
interface to be used by other qemu binaries.

So at a minimum, we should let the user know how to make runqemu skip
that tap interface.

[YOCTO #5047]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 scripts/runqemu-internal |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index 3f8674c..d6ceb28 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -211,7 +211,7 @@  else
                 TAP=$tap
             fi 
         else
-            echo "Using preconfigured tap device '$TAP'"
+            echo "Using preconfigured tap device '$TAP'. If this is not intended, create $LOCKFILE.lock to make runqemu skip $TAP."
         fi
 
         cleanup() {