Making a dynamically-linked root
Peter Wemm
peter at wemm.org
Thu Jun 5 23:31:06 PDT 2003
"Matthew D. Fuller" wrote:
> On Thu, Jun 05, 2003 at 04:35:56AM -0700 I heard the voice of
> Terry Lambert, and lo! it spake thus:
> >
> > And if init or mount gets hosed?
>
> Oh, come on. You're smarter than that.
>
> If a static /sbin/init gets hosed, you're screwed.
> If a dynamic /sbin/init gets hosed, you're screwed.
>
> If /lib/libc gets hosed, your dynamic /sbin/init is screwed. Your static
> /sbin/init still moves along just fine.
Which is why /rescue/init is on the fallback init path, and can be explicitly
entered at the loader prompt. Right now it is:
kern.init_path: /sbin/init:/sbin/oinit:/sbin/init.bak:/stand/sysinstall
And nothing would be stopping somebody from typing this at the loader:
set kern.init_path=/rescue/init
and at the shell path prompt, /rescue/sh
Cheers,
-Peter
--
Peter Wemm - peter at wemm.org; peter at FreeBSD.org; peter at yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5
More information about the freebsd-arch
mailing list