]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
runqemu: Stop passing bindir to the runqemu-ifup call
authorAlejandro Hernandez Samaniego <alejandro@enedino.org>
Wed, 21 Jun 2023 00:36:32 +0000 (18:36 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Jun 2023 08:05:24 +0000 (09:05 +0100)
Since https://git.yoctoproject.org/poky/commit/?id=51063c1e6ac
we need to pass exactly 2 arguments to runqemu-ifup, otherwise
the script will return an error since bindir is no longer being
used.

However the call to runqemu-ifup from runqemu is still passing
bindir as an argument resulting in the error mentioned above,
remove the bindir argument to fix this issue.

[YOCTO #15150]

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu

index 7c6f1cb9642767a3fd9f2455a47ee897289f3180..bd1f8366b63c502095b5961a902cb67b90877f3b 100755 (executable)
@@ -1182,7 +1182,7 @@ to your build configuration.
             gid = os.getgid()
             uid = os.getuid()
             logger.info("Setting up tap interface under sudo")
-            cmd = ('sudo', self.qemuifup, str(uid), str(gid), self.bindir_native)
+            cmd = ('sudo', self.qemuifup, str(uid), str(gid))
             try:
                 tap = subprocess.check_output(cmd).decode('utf-8').strip()
             except subprocess.CalledProcessError as e: