[yocto] Howto change the default shell in yocto?

Oliver Graute oliver.graute at gmail.com
Mon Mar 7 02:51:54 PST 2016


On 05/03/16, Burton, Ross wrote:
> On 5 March 2016 at 11:48, Oliver Graute <oliver.graute at gmail.com> wrote:
> 
> > first the default *system* shell (/bin/sh) is this possible? or does this
> > affect
> > to much of the yoco system itself, if I change /bin/sh to /bin/dash?
> >
> 
> bash is only the default shell (ie symlink from /bin/sh) if you install it,
> so if you don't want bash to be sh then one option is to not install bash.
> 
> If you do want to keep bash installed but change the sh link, then that is
> managed with update-alternatives.

> 
ok thx, if I do

update-alternatives  --install /bin/sh sh /bin/dash 100

on the target it works.

Best Regards,

Oliver



More information about the yocto mailing list