From owner-freebsd-hackers Thu Nov 14 22:46:31 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2883537B401 for ; Thu, 14 Nov 2002 22:46:30 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E82443E4A for ; Thu, 14 Nov 2002 22:46:29 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.6/8.12.5) with SMTP id gAF6blBF038462; Fri, 15 Nov 2002 01:37:58 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Fri, 15 Nov 2002 01:37:47 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Doug Rabson Cc: "M. Warner Losh" , nate@root.org, kientzle@acm.org, hackers@FreeBSD.ORG Subject: Re: Shrinking /(s)bin: A Proposal In-Reply-To: <200211140938.52546.dfr@nlsystems.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 14 Nov 2002, Doug Rabson wrote: > > : I'm open to patches for building /[s]bin as dynamic. If you have > > : time and can coordinate with lukem@netbsd.org to build the patch, I > > : would appreciate it. > > > > % make NOSHARED=NO buildworld > > > > No patches necessary. We do this all the time at work, and it works > > fabulously. I do this for disk based systems that have / and /usr on > > the same file system too. > > To do it right for split root/usr installations requires a few patches > though. The rtld and the libs required for /[s]bin need to move to / and > compat symlinks created from /usr. A suitable crunchgen'ed binary for > /recover would be useful too. I had some local patches that did a subset of this -- moved ld.so to /lib, as well as installing shared libraries to /lib instead of /usr/lib for the base system. I seem to recall I also had to tweak some defaults in ld.so or rtld or the like, though. I agree that the right path to support fully dynamic systems properly is to adopt the approach taken by NetBSD: provide a decent /recover with crunchgen, etc. I do use fully dynamic stuff for some local test boxes, makes upgrading libc code for development purposes much easier, as well as supporting dlsym() for /sbin, which is very useful in my environment. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message