From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 3 14:38:21 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 44DF416A420 for ; Fri, 3 Feb 2006 14:38:21 +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 CEC9643D46 for ; Fri, 3 Feb 2006 14:38:20 +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 6D1BAB960 for ; Fri, 3 Feb 2006 15:38:19 +0100 (CET) Received: by borg.borderworlds.dk (Postfix, from userid 1001) id 3DBE61149C; Fri, 3 Feb 2006 15:38:19 +0100 (CET) To: freebsd-hackers@FreeBSD.org From: Christian Laursen Date: Fri, 03 Feb 2006 15:38:19 +0100 Message-ID: <86wtgccxt0.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: Subject: 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: Fri, 03 Feb 2006 14:38:21 -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. So far I have the following contained in a file called /boot/imageloader.4th which I include from loader.rc: ============================================================ marker task-imageloader.4th : update ." Loading updater mfsroot..." cr \ Load mfsroot here s" ufs:md0a" s" vfs.root.mountfrom" setenv 0 boot ; ============================================================ 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