From owner-freebsd-arch@FreeBSD.ORG Mon Jun 2 15:19:05 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C778137B401 for ; Mon, 2 Jun 2003 15:19:05 -0700 (PDT) Received: from kientzle.com (h-66-166-149-50.SNVACAID.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BC9843F85 for ; Mon, 2 Jun 2003 15:19:05 -0700 (PDT) (envelope-from kientzle@acm.org) Received: from acm.org (big.x.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id h52MJ4tJ097198; Mon, 2 Jun 2003 15:19:04 -0700 (PDT) (envelope-from kientzle@acm.org) Message-ID: <3EDBCDD2.1080900@acm.org> Date: Mon, 02 Jun 2003 15:21:06 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.6) Gecko/20011206 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dag-Erling Smorgrav References: <20030602171942.GA87863@roark.gnf.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: arch@FreeBSD.org Subject: Re: Making a dynamically-linked root X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kientzle@acm.org List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jun 2003 22:19:06 -0000 Dag-Erling Smorgrav wrote: > Gordon Tetlow writes: >>... my boot time ... went from 12 seconds with a static root to 15 >>seconds with a dynamic root. > > Was /bin/sh dynamically linked? It shouldn't be. Sorry, but /bin/sh calls 'getpwnam()', which means /bin/sh should use NSS, and thus needs to be dynamically linked. The _only_ program that I can see any useful debate about is /sbin/init. Making it dynamic requires implementing safety features in the kernel to run /rescue/init if /sbin/init is present but fails. Once those features are present, then I think _everything_ (but /rescue) should be dynamic. Period. Tim