Making a dynamically-linked root

Jan Grant Jan.Grant at bristol.ac.uk
Tue Jun 3 03:28:18 PDT 2003


On Mon, 2 Jun 2003, Tim Kientzle wrote:

> Dag-Erling Smorgrav wrote:
>
> > Gordon Tetlow <gordont at gnf.org> 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.

I don't think this reasoning is completely sound. A functional (but
minimalist) static /bin/sh (or /sbin/sh) will still let you run
/usr/local/bells-and-whistles/sh if you need ~user.


-- 
jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/
Axioms speak louder than words.



More information about the freebsd-arch mailing list