bashisms in meta-phosphor scripts

Brad Bishop bradleyb at fuzziesquirrel.com
Fri Mar 8 00:58:22 AEDT 2019


On Tue, Feb 19, 2019 at 07:08:00PM +0000, Mazur, Marta wrote:
>Hi all,
>
>We have to cut out bash from our system and use busybox ash as the only shell. I found several scripts in the meta-phosphor layer that are not POSIX compliant and therefore are unusable without bash.
>
>Has anyone run into this problem? Does anyone have plans to remove bash dependencies from this layer?

No plans that I am aware of, but I am in favor of being bash-free.
Thanks!
>
>Or maybe we could patch those scripts and submit the patches to upstream? It should increase portability to systems with any POSIX shell.

That would be great!  Do you plan to work on this?  While not required,
if you open a github issue for it and tag it with a release, we can 
note that this work occurred in the release notes.

You might also consider adding something to the docs/anti-patterns.md
for this to really solidify that we want to be POSIX compliant in
meta-phosphor.

Thanks!

-brad


More information about the openbmc mailing list