From owner-freebsd-current@FreeBSD.ORG Wed Nov 19 09:25:42 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C68A216A4CE for ; Wed, 19 Nov 2003 09:25:42 -0800 (PST) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6712E43FE3 for ; Wed, 19 Nov 2003 09:25:41 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.9/8.12.9) with ESMTP id hAJHPXbe073475; Wed, 19 Nov 2003 09:25:33 -0800 (PST) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) hAJHPXWS009198; Wed, 19 Nov 2003 09:25:33 -0800 (PST) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.10/8.12.10/Submit) id hAJHPXsh009197; Wed, 19 Nov 2003 09:25:33 -0800 (PST) (envelope-from marcel) Date: Wed, 19 Nov 2003 09:25:33 -0800 From: Marcel Moolenaar To: Ken Smith Message-ID: <20031119172533.GB9066@dhcp01.pn.xcllnt.net> References: <200311182307.hAIN7Wpm000717@dyson.jdyson.com> <20031118164905.R35009@pooker.samsco.home> <20031119141059.GA14308@madman.celabo.org> <20031119141950.GA95734@ussenterprise.ufp.org> <20031119142535.GA27610@electra.cse.Buffalo.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031119142535.GA27610@electra.cse.Buffalo.EDU> User-Agent: Mutt/1.5.4i cc: freebsd-current@freebsd.org Subject: Re: Unfortunate dynamic linking for everything X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2003 17:25:42 -0000 On Wed, Nov 19, 2003 at 09:25:35AM -0500, Ken Smith wrote: > On Wed, Nov 19, 2003 at 09:19:50AM -0500, Leo Bicknell wrote: > > > To boot a machine into single user mode you need a kernel, init, > > and /bin/sh (minimally). > > Roughly the same thing was bothering me last night. You get a chance > to specify the shell when init is in the last phase of getting you to > single-user mode so you can say /rescue/sh at that point. init is > another story and I asked someone about that, they said it either is > or will shortly be a loader option so you can override that to be > /rescue/init that way. set init_path=/rescue/init It's rather non-intuitive. It works, but having a static /sbin/init avoids having to muck around in the loader in order to get to the rescue bits. If you need the rescue bits, you pretty much always need to use /rescue/init anyway. A dynamicly linked /sbin/init just makes it harder to get to the rescue bits, so it makes sense to link init(8) staticly. Especially since there's no advantage to dynamic linking init(8) that compensates for the inconvience. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net