Making a dynamically-linked root
Terry Lambert
tlambert2 at mindspring.com
Fri Jun 6 00:52:10 PDT 2003
Peter Wemm wrote:
> "Matthew D. Fuller" wrote:
> > 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
The /rescue, to my mind, is just a gratuitous renaming of /stand.
It also fails to make the dynamic linking argument strongly enough,
IMO. That's why I'm trying to avoid invoking the "and then a
statically linked miracle happens"... 8-).
-- Terry
More information about the freebsd-arch
mailing list