diff options
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-x | scripts/runqemu-internal | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index 1831a098c6..fb0d80660f 100755 --- a/scripts/runqemu-internal +++ b/scripts/runqemu-internal | |||
@@ -173,13 +173,14 @@ if [ "$TAP" = "" ]; then | |||
173 | fi | 173 | fi |
174 | 174 | ||
175 | GROUPID=`id -g` | 175 | GROUPID=`id -g` |
176 | USERID=`id -u` | ||
176 | echo "Setting up tap interface under sudo" | 177 | echo "Setting up tap interface under sudo" |
177 | # Redirect stderr since we could see a LD_PRELOAD warning here if pseudo is loaded | 178 | # Redirect stderr since we could see a LD_PRELOAD warning here if pseudo is loaded |
178 | # but inactive. This looks scary but is harmless | 179 | # but inactive. This looks scary but is harmless |
179 | tap=`sudo $QEMUIFUP $GROUPID $OECORE_NATIVE_SYSROOT 2> /dev/null` | 180 | tap=`sudo $QEMUIFUP $USERID $GROUPID $OECORE_NATIVE_SYSROOT 2> /dev/null` |
180 | if [ $? -ne 0 ]; then | 181 | if [ $? -ne 0 ]; then |
181 | # Re-run standalone to see verbose errors | 182 | # Re-run standalone to see verbose errors |
182 | sudo $QEMUIFUP $GROUPID $OECORE_NATIVE_SYSROOT | 183 | sudo $QEMUIFUP $USERID $GROUPID $OECORE_NATIVE_SYSROOT |
183 | return | 184 | return |
184 | fi | 185 | fi |
185 | LOCKFILE="$LOCKDIR/$tap" | 186 | LOCKFILE="$LOCKDIR/$tap" |