bashisms in meta-phosphor scripts
Joseph Reynolds
jrey at linux.ibm.com
Fri Mar 1 08:48:00 AEDT 2019
On 2019-02-19 13:08, 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.
Why do you need to drop bash? Licensing? To save space?
> Has anyone run into this problem? Does anyone have plans to remove
> bash dependencies from this layer?
I haven't heard of any such plans, nor did I find any in the email
archives: https://lists.ozlabs.org/pipermail/openbmc/
> Or maybe we could patch those scripts and submit the patches to
> upstream? It should increase portability to systems with any POSIX
> shell.
That approach could work. Before you get started, we should discuss the
idea of not using POSIX scripts and not using bashisms.
If there is agreement, you might want to first document the issue here:
https://github.com/openbmc/docs/blob/master/anti-patterns.md
- Joseph
> Regards,
>
> Marta
>
> ---------------------------------------------------------------------
> Intel Technology Poland sp. z o.o.
> ul. Słowackiego 173 | 80-298 Gdańsk | Sąd Rejonowy
> Gdańsk Północ | VII Wydział Gospodarczy Krajowego
> Rejestru Sądowego - KRS 101882 | NIP 957-07-52-316 | Kapitał
> zakładowy 200.000 PLN.
>
> Ta wiadomość wraz z załącznikami jest przeznaczona
> dla określonego adresata i może zawierać informacje
> poufne. W razie przypadkowego otrzymania tej wiadomości, prosimy o
> powiadomienie nadawcy oraz trwałe jej usunięcie; jakiekolwiek
> przeglądanie lub rozpowszechnianie jest zabronione.
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). If you are not the intended
> recipient, please contact the sender and delete all copies; any review
> or distribution by others is strictly prohibited.
More information about the openbmc
mailing list