compiling root filesystem into kernel (preferably tmpfs root filesystem)

perryh at pluto.rain.com perryh at pluto.rain.com
Thu Apr 9 20:13:32 UTC 2009


Travis Daygale <anti_spamsys at yahoo.com> wrote:
> I have built a root image that I put in the kernel as described in
> the Nov 2006 post. ?My UFS root image consists of /sbin/init,
> where init is a statically compiled C program that just spits out
> "Hello world" and sleeps, this binary runs fine under FBSD. ?At
> this point, I have the kernel booting but it panics because it
> says it can't find init.... ?Hmmm... ?I believe (haven't had time
> to test) that it is finding root?

Yes, if it gets to the point of "can't find init" it has already
successfully mounted the root filesystem (although, perhaps, not
the *intended* root filesystem).


More information about the freebsd-hackers mailing list