Necessary code or trash?
Marc Wiz
marc at wiz.com
Thu Aug 28 14:37:02 PDT 2003
On Thu, Aug 28, 2003 at 05:33:45PM -0400, Matthew Graybosch wrote:
>
> As others explained these commands and others are statically linked so that
> they do not depend on libraries that live in /usr. Since these are very
> basic commands, it's a bad idea to have them depend on a library that might
> not be available if only the / filesystem is mounted.
>
> Since / usually just contains /root, /bin, /sbin and a couple of others,
> statically linked programs in /bin and /sbin are always available, even
> in single user mode. Booting into single user only mounts /bin, which is why
> some people on the list have advised sticking with /bin/sh when asked about
> changing root's login shell.
Sticking with /bin/sh is a good idea.
What I have done is build a static version of bash and put it /bin
I changed root's shell to /bin/bash and run just fine.
Has anyone noticed what a pain it is to build bash statically and install
it in /bin?
Marc
--
Marc Wiz
marc at wiz.com
Yes, that really is my last name.
More information about the freebsd-questions
mailing list