Re: emergency or init=/bin/sh mode and terminal signals

From: Willy Tarreau
Date: Mon Jun 19 2006 - 00:00:59 EST


On Mon, Jun 19, 2006 at 12:48:28AM +0200, Samuel Thibault wrote:
> Willy Tarreau, le Mon 19 Jun 2006 00:44:24 +0200, a écrit :
> > On Mon, Jun 19, 2006 at 12:40:51AM +0200, Samuel Thibault wrote:
> > > Wakko Warner, le Sun 18 Jun 2006 18:39:06 -0400, a écrit :
> > > > why not only set this if the shell is /bin/sh ?
> > >
> > > Because you can't know that. /bin/sh is one example of shell, /bin/ash
> > > is another /usr/bin/myprog is yet another...
> >
> > another possibility would be to do it only if 'init=' has been specified,
> > since most of the time the kernel finds it itself.
>
> Init needs to be patched for the emergency case then.

why ? the goal is to reduce the risk of killing init. This risk remains only
if "init=..." was specified. In your case, it is permanent.

> Samuel

Regards,
willy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/