Date: Thu, 9 Apr 2009 13:52:44 -0700 (PDT) From: Travis Daygale <anti_spamsys@yahoo.com> To: perryh@pluto.rain.com Cc: freebsd-hackers@freebsd.org Subject: Re: compiling root filesystem into kernel (preferably tmpfs root filesystem) Message-ID: <449148.74528.qm@web37103.mail.mud.yahoo.com>
next in thread | raw e-mail | index | archive | help
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@pluto.rain.com <perryh@pluto.rain.com> wrote: From: perryh@pluto.rain.com <perryh@pluto.rain.com> Subject: Re: compiling root filesystem into kernel (preferably tmpfs root filesystem) To: anti_spamsys@yahoo.com Cc: freebsd-hackers@freebsd.org Date: Thursday, April 9, 2009, 12:55 PM Travis Daygale <anti_spamsys@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).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?449148.74528.qm>