From owner-freebsd-arch@FreeBSD.ORG Mon Jun 2 12:10:10 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 0C90537B404 for ; Mon, 2 Jun 2003 12:10:10 -0700 (PDT) Received: from perrin.int.nxad.com (internal.ext.nxad.com [69.1.70.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFF8043FDD for ; Mon, 2 Jun 2003 12:10:08 -0700 (PDT) (envelope-from sean@nxad.com) Received: by perrin.int.nxad.com (Postfix, from userid 1001) id 8000D2105A; Mon, 2 Jun 2003 12:10:07 -0700 (PDT) Date: Mon, 2 Jun 2003 12:10:07 -0700 From: Sean Chittenden To: Gordon Tetlow Message-ID: <20030602191007.GE65470@perrin.int.nxad.com> References: <20030602171942.GA87863@roark.gnf.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="82I3+IH0IqGh5yIs" Content-Disposition: inline In-Reply-To: <20030602171942.GA87863@roark.gnf.org> X-PGP-Key: finger seanc@FreeBSD.org X-PGP-Fingerprint: 3849 3760 1AFE 7B17 11A0 83A6 DD99 E31F BC84 B341 X-Web-Homepage: http://sean.chittenden.org/ User-Agent: Mutt/1.5.4i cc: arch@FreeBSD.org cc: Tim Kientzle Subject: Re: Making a dynamically-linked root X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list 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 19:10:10 -0000 --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > I'm planning on making a dynamically-linked root partition by > 5.2. To that end, I'm planning on doing to the following: >=20 > Integrate Tim Kientzle's /rescue patches into the tree > Create /lib and populate with all the libs needed to support dynamically > linked binaries in /bin and /sbin > Have a big (probably NO_DYNAMIC_ROOT) knob to switch from static to > dynamic. I didn't see the bits for /rescue in the attached patch listed to know if there is a more updated /rescue patch available, but I just want to emphasize the caution necessary for this. I'm on the road at the moment and decided to update my laptop last night. This morning when I did an installworld/installkernel, my copy of ld-elf.so.1 was hosed. I think it had something to do with libmap, but I haven't spent the time to figure it out yet. With my cdrom drive and floppy about 700mi away, I was counting my lucky stars that my old ld-elf.so.1 was backed up as ld-elf.so.1.old and that /bin|/sbin were statically compiled. On a different note regarding /rescue, would it be possible to add less(1) to the rescue set? In single user mode, scroll lock doesn't work and there's no way to read recent entries in UPDATING without cat(1) or head(1). Lastly, on install, given the importance of having functioning binaries for /bin and /sbin, has it been considered to have the programs executed once before install to see if they can run, possibly with the -V flag? ./[progname] --test install [progname] /bin Having make bomb out after having the program run a "self test" that tests its ability to execute with ld would save many headaches. As for the performance hit that you describe, have you investigated the prebinding work to see how that affects performance with /lib and /usr/lib prebound? -sc --=20 Sean Chittenden --82I3+IH0IqGh5yIs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Comment: Sean Chittenden iD8DBQE+26EP3ZnjH7yEs0ERAu/TAKDO/CqiUVMEkpGcI+0JM2I45upQ0QCgwsVH wXnXfWniYhYODXShYz58aGI= =pJo+ -----END PGP SIGNATURE----- --82I3+IH0IqGh5yIs--