compiling root filesystem into kernel (preferably tmpfs root filesystem)

Travis Daygale anti_spamsys at yahoo.com
Thu Apr 9 20:52:45 UTC 2009


I wonder if there is a sequence of loader commands and/or configuration (both at kernel compile and at boot) that can assure the kernel mounts the root filesystem installed into itself?
Trever


--- On Thu, 4/9/09, perryh at pluto.rain.com <perryh at pluto.rain.com> wrote:

From: perryh at pluto.rain.com <perryh at pluto.rain.com>
Subject: Re: compiling root filesystem into kernel (preferably tmpfs root filesystem)
To: anti_spamsys at yahoo.com
Cc: freebsd-hackers at freebsd.org
Date: Thursday, April 9, 2009, 12:55 PM

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