From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1413 Path: news.gmane.org!not-for-mail From: Vincent Danen Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: aborting at stage 1? Date: Sun, 29 Apr 2007 17:12:57 -0600 Message-ID: <20070429231257.GC917@linsec.ca> References: <20070428165720.GR29193@linsec.ca> <200704281822.22286.mike@geekgene.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=f0KYrhQ4vYSV2aJu X-Trace: sea.gmane.org 1177888410 8978 80.91.229.12 (29 Apr 2007 23:13:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Apr 2007 23:13:30 +0000 (UTC) Cc: supervision@list.skarnet.org To: Mike Buland Original-X-From: supervision-return-1650-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Apr 30 01:13:28 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 1HiIa7-0006Ij-SY for gcsg-supervision@gmane.org; Mon, 30 Apr 2007 01:13:27 +0200 Original-Received: (qmail 28118 invoked by uid 76); 29 Apr 2007 23:13:48 -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 28113 invoked from network); 29 Apr 2007 23:13:48 -0000 X-URL: http://linsec.ca/ In-reply-to: <200704281822.22286.mike@geekgene.com> Original-Sender: Vincent Danen Content-disposition: inline X-PGP-Key: http://linsec.ca/vdanen.asc X-PGP-Key-ID: 0xFEE30AD4 X-PGP-Key-Fingerprint: 7F6C A60C 06C2 4811 FA1C A2BC 2EBC 5E32 FEE3 0AD4 User-Agent: Mutt/1.5.14 (2007-02-12) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1413 Archived-At: --f0KYrhQ4vYSV2aJu Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Mike Buland [2007-04-28 18:22:22 -0600]: >> 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 t= he >> >> 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 > >I've been an LFS guy for quite a while now, and if you want any extra help= =20 >with system setup feel free to send me an e-mail. As far as halt goes, it= is=20 >part of the sysvinit package, but so are a lot of other pretty important b= ase=20 >components, checking my paco log it has mountpoint, pidof, halt, killall5,= =20 >poweroff, reboot, shutdown, sulogin, telinit, last, lastb, mesg, utmpdump,= =20 >and wall. You can always install it and then get rid of the couple progra= ms=20 >you're not going to use, but init only takes up 32k stripped on my system. > >On my machine I setup runit to use the sysv style rc sysinit to begin with= ,=20 >it's really very easy, and you can always clean up the scripts that you do= n't=20 >need once you get it all working. > >Like I say, if you want more info about cleaning this up or working with L= FS,=20 >let me know. Likewise. Annvix ships with SysVinit because it does have some pretty important tools which Mike outlined above. But I always remove SysVinit's init program as I find runit better. So, even though SysVinit exists and is installed, the init program itself isn't. There's nothing wrong with this (and you'll be missing a lot of good tools if you go completely without). --=20 Vincent Danen @ http://linsec.ca/ --f0KYrhQ4vYSV2aJu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFGNSZ5LrxeMv7jCtQRAjjvAJwKZE6AfNh02Zasrw3Jxt7WwVrvAACePJUU PQ9FwWuMvF3OLK0r8xbJi90= =zkYk -----END PGP SIGNATURE----- --f0KYrhQ4vYSV2aJu--