From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1411 Path: news.gmane.org!not-for-mail From: Jorge Almeida Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: aborting at stage 1? Date: Sat, 28 Apr 2007 20:34:23 +0100 (WEST) Message-ID: References: <20070428165720.GR29193@linsec.ca> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1177788871 24492 80.91.229.12 (28 Apr 2007 19:34:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 Apr 2007 19:34:31 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1648-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Apr 28 21:34:30 2007 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1Hhsgf-0006nM-SR for gcsg-supervision@gmane.org; Sat, 28 Apr 2007 21:34:29 +0200 Original-Received: (qmail 7880 invoked by uid 76); 28 Apr 2007 19:34:50 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 7874 invoked from network); 28 Apr 2007 19:34:50 -0000 In-Reply-To: <20070428165720.GR29193@linsec.ca> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1411 Archived-At: On Sat, 28 Apr 2007, Vincent Danen wrote: > * Jorge Almeida [2007-04-28 13:20:21 +0100]: > >> What happens if some vital init task fails? Suppose that checking the >> root filesystem fails. The system should halt, but how to do it? If the >> script ends with "init 0" in case the previous steps fail, then some >> changes must be made in /etc/runit, according to the man page of >> runit-init. But if the root file system is mounted read-only... > > This has pretty much nothing to do with runit. For instance, my > /etc/runit/1 is: > Thank you for your reply, but I'm kind of lost here. The system I'm trying to setup is LFS. I don't want to use general boot scripts, I'm trying to keep the boot scripts (i.e., stages 1 and 3 scripts) simple and customized to my system (sacrifying generality). I noticed that the rc script in the link you provided uses /sbin/halt. In my Gentoo system, /sbin/halt belongs to the sysvinit package, so I suppose it will not be available in a sysvinit-free, pure runit, system. Is this correct? If so, the point is how to halt the system during stage 1 when something goes wrong and the root filesystem is not writable. From what I understood of the runit man pages, the only way to halt the computer when something goes wrong during stage 1 is to have the script /etc/runit/1 to issue "init 0". This will jump over stage 2 but will go to stage 3, which will need the root filesystem to be writable. Thanks. Jorge Almeida