From owner-freebsd-current@FreeBSD.ORG Sun Nov 16 20:37:50 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 4132116A4CE for ; Sun, 16 Nov 2003 20:37:50 -0800 (PST) Received: from bilver.wjv.com (user38.net339.fl.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0B4143F93 for ; Sun, 16 Nov 2003 20:37:48 -0800 (PST) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by bilver.wjv.com (8.12.10/8.12.10) with ESMTP id hAH4blDW067000 for ; Sun, 16 Nov 2003 23:37:47 -0500 (EST) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.12.10/8.12.10/Submit) id hAH4blp5066999 for freebsd-current@freebsd.org; Sun, 16 Nov 2003 23:37:47 -0500 (EST) (envelope-from bv) Date: Sun, 16 Nov 2003 23:37:47 -0500 From: Bill Vermillion To: freebsd-current@freebsd.org Message-ID: <20031117043747.GB66773@wjv.com> References: <20031117042234.7A5FE16A547@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031117042234.7A5FE16A547@hub.freebsd.org> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on bilver.wjv.com Subject: Re: HEADS UP: /bin and /sbin are now dynamically linked X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: bv@wjv.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2003 04:37:50 -0000 > ------------------------------ > Message: 10 > Date: Sun, 16 Nov 2003 14:50:24 -0800 > From: Darren Pilgrim > Subject: Re: HEADS UP: /bin and /sbin are now dynamically linked > On 2003.11.16 09:46:47 -0500, Robert M.Zigweid > wrote: > > > > > On Nov 16, 2003, at 12:10 AM, Gordon Tetlow wrote: > > > I just committed a patch to change /bin and /sbin from > > > statically to dynamically linked. If you don't like the > > > idea of using a dynamically linked /bin and /sbin, now is > > > the time to define NO_DYNAMICROOT in your make.conf. > > > The reasons for doing so have been hashed over lots of times. But > > > the short of it: > > > 1) Much smaller /bin and /sbin. On i386, /bin and /sbin are 33 MB > > > static. > > > Dynamically linked, they are only 4 MB. I don't think saving that little space on the / partition is as important as having everthing in sbin being able to stand alone no matter what is corrupted. On a non-FreeBSD system I had to recover, I had to physically take the server from the colo to a place where I could pull the drive to be able to run the recovery utitlities - as none of the dynamic binariies worked. One thing I always liked of the FBSD approach as opposed to others is to make ever tool that might possible be needed in a system recovery static so if it was there it would work. > > > 2) Proper support for NSS. This will finally allow you to use NSS > > > modules > > > and get things like usernames in ls -l working for modules that > > > are dynamically loaded. > What was done to programs like /bin/sh, /sbin/init and /sbin/fsck to > make them work without access to /usr/lib? And even if they are accessible >IF< the libraries become corrupted then nothing will work. That's certainly not a 'fail-safe' environment. I would think that instead of NO_DYNAMICROOT root in make.conf, a varialbe of DYNAMICROOT be used with the default of building static, and having the option of building dynamic for those who need to save those few MB of space. IOW don't change one of the things that has made the BSD so rugged and reliable for so many years. For those who don't build the OS but install from binaries, this makes the system potentially less rugged. One of the things I disliked about the Linux systems I've been on is libraries that change and break things - for things which >I< felt should have been static in the first place > End of freebsd-current Digest, Vol 34, Issue 26 Bill -- Bill Vermillion - bv @ wjv . com