From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 4 05:15:40 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 0A7F116A422 for ; Sat, 4 Feb 2006 05:15:40 +0000 (GMT) (envelope-from marsgmiro@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6890343D4C for ; Sat, 4 Feb 2006 05:15:39 +0000 (GMT) (envelope-from marsgmiro@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so768355nzo for ; Fri, 03 Feb 2006 21:15:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=p23mP0cc74Ozz4sO6MFoOXCls88BqTR2I0PdyxY/7m0DF18TsIAEmCC0A1uVu5au+3zxifCboOwy8Yo/zxn73z1mcY68CDOg8Ul1QVYculhl4XrYlBztBjKcGQQ3kVBrEiN2nxefcYt0wv3zu2JhTM+FpnIjoZgshKIH8Nzov1I= Received: by 10.37.2.28 with SMTP id e28mr2224320nzi; Fri, 03 Feb 2006 21:15:38 -0800 (PST) Received: by 10.36.74.18 with HTTP; Fri, 3 Feb 2006 21:15:38 -0800 (PST) Message-ID: <28edec3c0602032115i206256c6w6d3bbe8335fb72c6@mail.gmail.com> Date: Sat, 4 Feb 2006 13:15:38 +0800 From: "Mars G. Miro" To: Christian Laursen , freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Mailman-Approved-At: Sat, 04 Feb 2006 05:32:01 +0000 Cc: 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 05:15:40 -0000 > 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=3D"YES" mfsroot_type=3D"mfs_root" mfsroot_name=3D"/boot/mfsroot" > So far I have the following contained in a file called > /boot/imageloader.4th which I include from loader.rc: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > marker task-imageloader.4th > : update > ." Loading updater mfsroot..." cr > \ Load mfsroot here > s" ufs:md0a" s" vfs.root.mountfrom" setenv > 0 boot > ; > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > I am however unsure of the code to load the actual mfsroot image. > If I run the following two commands manually I get the intended result: > OK load -t mfs_root /boot/mfsroot > OK update > Any hints would be greatly appreciated. > Thanks. > -- > Christian Laursen cheers mars