Gavin Maltby <[EMAIL PROTECTED]> wrote:

> On 07/12/05 11:59, Joerg Schilling wrote:
> > Dan Mick <[EMAIL PROTECTED]> wrote:
> > 
> > 
> >>exec /bin/ksh -o vi
> > 
> > 
> > As we alrerady have discussed before, this is a really bad idea
> > as it may make a system unusable if /usr could not be mounted.
>
> It's been some time since I was last familiar with this stuff.
> Am I correct in saying that /lib (as distinct to /usr/lib)
> contains libraries that may be needed during recovery operations
> (eg, when /usr is unavailable)?  I think that is correct,
> and explains the demise of the old static binaries
> in /usr/sbin/static.
>
> Anyway, an ldd on /usr/bin/bash shows that it requires nothing
> outside of /lib (ie nothing in /usr).  So my guess would be
> that simply copying /usr/bin/bash to /sbin would make it
> available to you in times of emergency (ie when only /
> is mounted, perhaps ro).

This does not help ud /usr is not mounted in single user emergency mode.

/bin is a symlink to /usr/bin and when /usr is not mounted, then
there is no /bin/ksh -> the bourne shell dies from the exec above.





Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]        (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to