From owner-freebsd-hackers Thu Nov 14 11:53:18 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 2C2F037B401 for ; Thu, 14 Nov 2002 11:53:16 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id CB3CD43E42 for ; Thu, 14 Nov 2002 11:53:15 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 43935 invoked by uid 1000); 14 Nov 2002 19:53:16 -0000 Date: Thu, 14 Nov 2002 11:53:16 -0800 (PST) From: Nate Lawson To: hackers@FreeBSD.ORG Subject: Re: Shrinking /(s)bin: A Proposal In-Reply-To: <3DD3ECC1.17484EBD@softweyr.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, Wes Peters wrote: > Doug Rabson wrote: > > > > On Thursday 14 November 2002 6:45 am, M. Warner Losh wrote: > > > > > > % 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. > > Time to bring back /lib? Yeah, this is what I figured patches would be needed for and it's more a policy issue of fs layout than a technical problem. A couple things that could be useful: * All dynamic/static flag (imp's option above) * Flag to selectively link dynamically/statically, overriding the above flag for specific binaries (Makefile flags?) * Minimal /lib (libc, ...?) with symlinks from /usr/lib * Optional recovery crunchgen utility. -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message