From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 9 20:13:31 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9DD1106566B for ; Thu, 9 Apr 2009 20:13:31 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [199.26.172.34]) by mx1.freebsd.org (Postfix) with ESMTP id B0DFE8FC08 for ; Thu, 9 Apr 2009 20:13:31 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id n39KDVc0076600 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 9 Apr 2009 13:13:31 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id n39KDVri076599; Thu, 9 Apr 2009 13:13:31 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA00925; Thu, 9 Apr 09 12:57:01 PDT Date: Thu, 09 Apr 2009 12:55:08 -0700 From: perryh@pluto.rain.com To: anti_spamsys@yahoo.com Message-Id: <49de529c.UkvqMSxncVbt/6KA%perryh@pluto.rain.com> References: <104771.62272.qm@web37103.mail.mud.yahoo.com> In-Reply-To: <104771.62272.qm@web37103.mail.mud.yahoo.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: compiling root filesystem into kernel (preferably tmpfs root filesystem) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2009 20:13:32 -0000 Travis Daygale 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).