]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: misc: Add /bin to the list of searchpaths
authorVijai Kumar K <vijaikumar.kanagarajan@gmail.com>
Tue, 1 Sep 2020 10:02:33 +0000 (15:32 +0530)
committerSteve Sakoman <steve@sakoman.com>
Thu, 3 Sep 2020 03:06:38 +0000 (17:06 -1000)
/bin is also a valid path where one can find executables. Add
that to the search path.

Signed-off-by: Vijai Kumar K <vijaikumar.kanagarajan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ca0a6025351cb2135e87cecf828633cf12aa34c6)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
scripts/lib/wic/misc.py

index 1f199b9f234c5f8e494dd9cf4902e20d3941b41d..fe4abe8115cc0efb3900b7c1276bfc48be690118 100644 (file)
@@ -128,8 +128,9 @@ def exec_native_cmd(cmd_and_args, native_sysroot, pseudo=""):
     if pseudo:
         cmd_and_args = pseudo + cmd_and_args
 
-    native_paths = "%s/sbin:%s/usr/sbin:%s/usr/bin" % \
-                   (native_sysroot, native_sysroot, native_sysroot)
+    native_paths = "%s/sbin:%s/usr/sbin:%s/usr/bin:%s/bin" % \
+                   (native_sysroot, native_sysroot,
+                    native_sysroot, native_sysroot)
 
     native_cmd_and_args = "export PATH=%s:$PATH;%s" % \
                    (native_paths, cmd_and_args)