From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 9 20:52:45 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 39D8C106566C for ; Thu, 9 Apr 2009 20:52:45 +0000 (UTC) (envelope-from anti_spamsys@yahoo.com) Received: from web37103.mail.mud.yahoo.com (web37103.mail.mud.yahoo.com [209.191.85.105]) by mx1.freebsd.org (Postfix) with SMTP id E87578FC0A for ; Thu, 9 Apr 2009 20:52:44 +0000 (UTC) (envelope-from anti_spamsys@yahoo.com) Received: (qmail 75332 invoked by uid 60001); 9 Apr 2009 20:52:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1239310364; bh=d45v42AUSXmubJ+DVzxD9vfVl6kklsKlISMl0p1ZXkU=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=3jok85kbWO87FIUi/igIovap0BgdW9NBY4ImnLa2VfjWiHdw5r9HeO8HuLFQPhaelUl7OGmlCY2RmRSgmAmBP/pANpdGoF7PiG5zM8kwKYirXQeRT+On/SQFoloV+kqD69m8EbbOKI5C4TELAjRzdkAKxSm8CHEGIRFrKrN0ldc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=eSw5f1wHrggz1IjhV/JnZJ0G/Na55bbdnn9ub3AxJb4B9zekKZd2G4oIxO8CdXTnvo5EGNLt0a7f0sxBmMPBSMiTSlqkfIzHAriG7H/MeemcJenRkl3bIlXah0tlZlhqOrLjbT+oZ2IdvIyTnKwrQG6kSn/WyrG0YFvBdI01ock=; Message-ID: <449148.74528.qm@web37103.mail.mud.yahoo.com> X-YMail-OSG: 2xg6U_oVM1lqMj3WRBkEGbo5yrvlBiO7tPuzmBtKoFHy0UlqGgm95op7q3QUFCqbUKoUq8eiH7qFNV_CKsX9L8A_BjcNwEvRzaPGN2ljkhqFQ5cTqjGyic7HZfG7PUU0PNZ2itEhA1iYe5i3zCucbs9GkDpXD1JGyF_cgaU07f2mbaPHKZtFR2IqYJ_EDECYgFoQMSB9nKhupkls7cePOMOw71kA5h3dwOOVgmw4E.wofH5iAoRhKw7g6Yz79cRAVbjbSt4MCveUBdJufvEoIQNmAL4YxRSD68Nt5uf28NlFC7WZ8.EVNvmxut8X5yY6Tp0Q8con92YfGislXf_F Received: from [76.227.12.174] by web37103.mail.mud.yahoo.com via HTTP; Thu, 09 Apr 2009 13:52:44 PDT X-Mailer: YahooMailClassic/5.2.15 YahooMailWebService/0.7.289.1 Date: Thu, 9 Apr 2009 13:52:44 -0700 (PDT) From: Travis Daygale To: perryh@pluto.rain.com MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 09 Apr 2009 20:57:51 +0000 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:52:45 -0000 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 wrote: From: 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 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).