William Pursell writes:
> On 8/29/07, Dave Miner <Dave.Miner at sun.com> wrote:
> > William Pursell wrote:
> > > Where can I find the list of files which are copied to the miniroot image?
> > >
> >
> > There isn't a simple list.  Presently, a set of packages are added, and
> > then a bunch of unused portions of the resulting file system are
> > removed.  Why do you ask?
> >
> 
> I want to add ksh93 and make /bin/sh a link to it. Should save some
> disk space, memory and make miniroot faster

Then unpack the archive with /usr/sbin/root_archive and change it.

Don't forget that ksh93 has a different set of library requirements
from /usr/bin/sh.  It needs all of the ones that /usr/bin/sh needs,
plus the following:

        Path                            File size
        /usr/lib/libshell.so.1          629852
        /usr/lib/libcmd.so.1            246444
        /usr/lib/libdll.so.1            29700
        /usr/lib/libast.so.1            1155644
        /lib/libsocket.so.1             90300

Of those, only libsocket is already present.  (There's a libcmd.so.1,
but it's a dummy.)

And (of course) you'll need to include both /usr/bin/ksh93 and
/usr/bin/i86/ksh93.

And speed of the miniroot (at least in terms of upgrading or
installing) is mostly governed by the speed of the random-access
medium used to store the packages and the efficiency of the
package-handling code itself, none of which has much to do with the
shell.

It doesn't sound like a big win to me versus the 120020-byte /sbin/sh
executable, but I guess your mileage will vary.

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

Reply via email to