[elbe-devel] [PATCH] Fix silent command error in cpio examples

John Ogness john.ogness at linutronix.de
Fri Jul 5 22:33:53 CEST 2019


On 2019-07-05, Olivier Dion <dion at linutronix.de> wrote:
> The command tee is not at fault here.  The same problem can be made
> using who.
> [...]
> The problem seems to be not related to the pipe, but really to the
> absolute path.
>
> echo is an exception since it's either builtin in the shell or found
> under /bin and not /usr/bin like tee and who.  Thus other tests have
> been made to see if the problem is exclusive to /usr/bin.
> [...]
> So apparently /bin is fine, but not /usr/bin.  The only explanation
> would be that /usr/bin is not in PATH.  Previous tests (see GitHub) have
> shown that this is not the case.
>
> Just in case, here's a nother test ..
> [...]
> But this time we do this in the chroot env:
> ``````````````````````````````````````````````````````````````````````
> if os.environ["PATH"]:
>     os.environ["PATH"] = "%s:/usr/bin" % os.environ["PATH"]
> else:
>     os.environ["PATH"] = "/usr/bin"
>
> ``````````````````````````````````````````````````````````````````````
> but same error as previously ...

THanks for all your work on this interesting issue! I really think it
would be beneficial to create a simple python script to run in the
initvm that reproduces the issue. With strace(1) we should be able to
see what is going on. For example, we should be able to see someone
(either python or the shell) using stat64(2) syscalls to locate the
binary.

John Ogness



More information about the elbe-devel mailing list