[Buildroot] [PATCH 1/7] package/skeleton-init-common: add /bin/sh to /etc/shells

Peter Korsgaard peter at korsgaard.com
Mon Jan 15 14:41:43 UTC 2018


>>>>> "Romain" == Romain Naour <romain.naour at smile.fr> writes:

 > Add the default shell /bin/sh to /etc/shells only if BR2_SYSTEM_BIN_SH_NONE
 > is not selected.

 > Add an empty /etc/shells in the rootfs skeleton.

Is there any specific reason to have an empty /etc/shells?

It is a bit noisy to have this extra file in the BIN_SH_NONE case, and
it afaik changes behaviour (E.G. getusershell() will return default
values if there is no /etc/shells, but will now presumably return the
empty string).

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list