Skip to contentSkip to conversation

wic: misc: Add /bin to the list of searchpaths

PATCH New Vijai Kumar K 1 participant 1 message Sep 1, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wic: misc: Add /bin to the list of searchpaths

/bin is also a valid path where one can find executables. Add that to the search path.

---
 scripts/lib/wic/misc.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
scripts/lib/wic/misc.py +3 -2
index 91975ba151..4b08d649c6 100644
@@ -138,8 +138,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)
Signature · 1 line
2.17.1