[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Making init scripts use dash

Michal Politowski <mpol@charybda.icm.edu.pl>:
> On Thu, 18 May 2006 22:38:08 +0200, Goswin von Brederlow wrote:
> [...]
> > 3. Make sh an alternative
> dash already optionally diverts it. Isn't it good enough?

Both of these are a really bad idea.  If anything goes wrong at the
wrong moment, /bin/sh would be left nonexistent and the system would
be totally hosed.

The _only_ safe way to manage /bin/sh is by rename(2)'ing something
over the top of it, like dpkg does.  Neither update-alternatives nor
diversions should be applied to the essential files in Essential


Reply to: