Re: [yocto] Howto change the default shell in yocto?

2016-03-07 Thread Oliver Graute
On 05/03/16, Burton, Ross wrote:
> On 5 March 2016 at 11:48, Oliver Graute  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
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Howto change the default shell in yocto?

2016-03-05 Thread Burton, Ross
On 5 March 2016 at 11:48, Oliver Graute  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.

Ross
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Howto change the default shell in yocto?

2016-03-05 Thread Oliver Graute
On 04/03/16, Christopher Larson wrote:
> The default *system* shell (/bin/sh) or the default shell for users, or for
> root? Folks often conflate them, but they're not the same.

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?

the alternative for me is to just change the default shell for normal
users and the root user. I assume its done via /etc/passwd. But how I adapt
these the yocto way? 

Best regards,

Oliver
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Howto change the default shell in yocto?

2016-03-04 Thread Christopher Larson
The default *system* shell (/bin/sh) or the default shell for users, or for
root? Folks often conflate them, but they're not the same.

On Fri, Mar 4, 2016 at 7:01 AM Oliver Graute 
wrote:

> Hello,
>
> how can I change the default shell on the yocto target from bash to
> another shell like dash?
>
> is there a variable for local.conf? or do I need to adapt my passwd for
> every user?
>
> Best Regards,
>
> Oliver
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto