libkas: Add /sbin and /usr/sbin to PATH

/sbin and /usr/sbin might contain tools Yocto depens on, e.g. 'ip'.

"""
The following required tools (as specified by HOSTTOOLS) appear to be
unavailable in PATH, please install them in order to proceed:

	ip
"""

Signed-off-by: Daniel Wagner <daniel.wagner@siemens.com>
This commit is contained in:
Daniel Wagner 2017-11-16 15:45:39 +01:00
parent 5fac90611f
commit 7aff26d105

View File

@ -291,7 +291,7 @@ def get_build_environ(config, build_dir):
os.chmod(get_bb_env_file, 0o775)
env = {}
env['PATH'] = '/bin:/usr/bin'
env['PATH'] = '/usr/sbin:/usr/bin:/sbin:/bin'
(_, output) = run_cmd([get_bb_env_file, build_dir],
cwd=init_repo.path, env=env, liveupdate=False)