On 3/6/07, Darren J Moffat <[EMAIL PROTECTED]> wrote:
William James wrote: > On 3/6/07, Darren J Moffat <[EMAIL PROTECTED]> wrote: >> William James wrote: >> > On 3/6/07, Garrett D'Amore <[EMAIL PROTECTED]> wrote: >> >> And that's what I'm talking about. I'm not concerned about the >> >> installer. But I do want to be able to formulate a recipe for a tiny >> >> distro. That's a lot harder when "critical" pieces are implemented in >> >> languages like perl. >> > >> > Solaris uses 5 shells during boot where 3 of them are clearly >> > obsoleted by ksh93. IMO this should be reduced to exactly *1* during >> > boot. >> >> Where do you get the number 5 from ? >> >> I did a very quick (and probably insufficient) look based on >> /lib/svc/method and /etc/init.d and I only find 2 >> >> /sbin/sh (and its links /bin/sh and /usr/bin/sh) >> /bin/ksh >> >> So what are the other three shells used during boot ? > > /sbin/sh <statically linked (yuk)ldd /sbin/sh libgen.so.1 => /lib/libgen.so.1 libsecdb.so.1 => /lib/libsecdb.so.1 libc.so.1 => /lib/libc.so.1 libnsl.so.1 => /lib/libnsl.so.1 libmp.so.2 => /lib/libmp.so.2 libmd.so.1 => /lib/libmd.so.1 libscf.so.1 => /lib/libscf.so.1 libuutil.so.1 => /lib/libuutil.so.1 libm.so.2 => /lib/libm.so.2 Nope.
Less yuk, more hurray. But how can I fix the machine from shell if /usr/lib is not mountable?
> /bin/sh $ ls -l /bin lrwxrwxrwx 1 root root 9 Dec 12 15:20 /bin -> ./usr/bin/ $ ls -l /bin/sh lrwxrwxrwx 1 root root 13 Dec 12 15:31 /bin/sh -> ../../sbin/sh* > /bin/ksh > /bin/ksh93 <new Solaris doesn't have ksh93 integrated yet so that is just impossible at this stage.
I listed this as 6th option
> /bin/bash What things use bash during boot ? I looked and couldn't find any.
Apache uses bash for its scripts
> /usr/xpg/bin/sh No such path on Solaris. It is either /usr/xpg4/bin/sh or /usr/xpg6/bin/sh
Sorry, I missed the 4. Where is /usr/xpg6/bin/sh? I don't have that shell.
What things are using the xpg version of sh during boot ? I looked and couldn't find any.
I don't know. I tried to rename it for testing a while ago and the machine hung on reboot. Maybe something calls system() and needs that shell. Cheers, William -- @,,@ William James (\--/) [EMAIL PROTECTED] (.>__<.) GNU/Solaris hacker _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
