how to relink /bin/sh away from dash -- update-alternatives?

Tony Arnold tony.arnold at manchester.ac.uk
Wed May 12 18:18:42 UTC 2010


Robert,

On 12/05/10 19:09, Robert P. J. Day wrote:
>
>    *sigh*.  it's embarrassing to ask trivial questions like this but,
> sometimes, google just doesn't come through and i'm still feeling my
> way around ubuntu.
>
>    i'm setting up to build openembedded on my lynx box, and the sanity
> check run by bitbake strongly recommends that i don't leave /bin/sh
> linked to dash.  currently, there's a symlink /bin/sh ->  dash.  but
> i'm assuming this is managed by the "alternatives" feature, yet:
>
> $ sudo update-alternatives --config sh
> update-alternatives: error: no alternatives for sh.
> $
>
>    what am i screwing up?  i'm just about to run

Nothing. If sh wedre managed by the alternatives system, then /bin/sh 
would link to /etc/alternatives/sh which would link to /bin/dash.

Unlinking /bin/sh seems very dangerous to me as sh is needed for the 
boot scripts to run!

Why does bitbake make this strange recommendation?

Regards,
Tony.
-- 
Tony Arnold,                        Tel: +44 (0) 161 275 6093
Head of IT Security,                Fax: +44 (0) 870 136 1004
University of Manchester,           Mob: +44 (0) 773 330 0039
Manchester M13 9PL.                 Email: tony.arnold at manchester.ac.uk




More information about the ubuntu-users mailing list