From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 4 07:30:26 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7BDF916A420 for ; Sat, 4 Feb 2006 07:30:26 +0000 (GMT) (envelope-from xi@borderworlds.dk) Received: from ferengi.borderworlds.dk (ferengi.borderworlds.dk [80.166.152.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19D5143D45 for ; Sat, 4 Feb 2006 07:30:25 +0000 (GMT) (envelope-from xi@borderworlds.dk) Received: from borg.borderworlds.dk (localhost [127.0.0.1]) by ferengi.borderworlds.dk (Postfix) with ESMTP id EDF16B821; Sat, 4 Feb 2006 08:30:23 +0100 (CET) Received: by borg.borderworlds.dk (Postfix, from userid 1001) id 3D2C611462; Sat, 4 Feb 2006 08:30:23 +0100 (CET) To: "Mars G. Miro" References: <28edec3c0602032115i206256c6w6d3bbe8335fb72c6@mail.gmail.com> From: Christian Laursen Date: Sat, 04 Feb 2006 08:30:22 +0100 In-Reply-To: <28edec3c0602032115i206256c6w6d3bbe8335fb72c6@mail.gmail.com> (Mars G. Miro's message of "Sat, 4 Feb 2006 13:15:38 +0800") Message-ID: <86fymzd1ip.fsf@borg.borderworlds.dk> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-hackers@freebsd.org Subject: Re: Loading mfsroot image from included 4th file 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: Sat, 04 Feb 2006 07:30:26 -0000 "Mars G. Miro" writes: >> I am trying to add a custom command I can run from the loader to boot >> the system with an mfsroot image, but my forth skills are somewhat >> lacking. > > > How about loading it from loader.conf? > % cat /boot/loader.conf > mfsroot_load="YES" > mfsroot_type="mfs_root" > mfsroot_name="/boot/mfsroot" While that would certainly work, it wouldn't quite do what I want. I only want to get the mfsroot loaded when I'm actually going to use it. Otherwise I would have to unload it after boot in the normal case which is far from elegant. -- Christian Laursen