From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 14 08:36:53 2013 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4CF307CF; Thu, 14 Nov 2013 08:36:53 +0000 (UTC) Received: from mail-wg0-x229.google.com (mail-wg0-x229.google.com [IPv6:2a00:1450:400c:c00::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BA9AD26C0; Thu, 14 Nov 2013 08:36:52 +0000 (UTC) Received: by mail-wg0-f41.google.com with SMTP id n12so361458wgh.2 for ; Thu, 14 Nov 2013 00:36:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:cc:subject:date:in-reply-to:references; bh=fmHLLDgtLA7577Q4hkoOzuCvpLrJavH49tSGGDW6qHU=; b=RG2peVvO+mTmfBD02AKBM6DgHaqsuPNu0Q+qMr58IXKrLm9bTcxLypwhmuMNX7g18r s3O2aPSCG4TxZRWHFJVvcEWv0a0qMLQF5/zzpcdyK6Rjc/cnshGIgi6LUemH/BURkQV/ lmHU1/pK4o5eZsFWa1BQfq+XCcgLuVBn888W05Krwu4y6p2dyUOWF0mQr5VrqCmNKCgt +YMZoqLd4BpL9xdOKlA6KnCoR7P4uJ2zzf4nSu/NpOxug8VYFJ+WsmTf3Ej8i6DmNv0M O2R3Yl27lmNURvGPDSvIJhTHSjDoxtvPwAokmik1PW4xyFpplyozHmUQUuifL6EcACif Fe1A== X-Received: by 10.180.187.41 with SMTP id fp9mr1158237wic.33.1384418211267; Thu, 14 Nov 2013 00:36:51 -0800 (PST) Received: from DOMYPC ([82.193.208.225]) by mx.google.com with ESMTPSA id uc12sm11371561wib.3.2013.11.14.00.36.49 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 14 Nov 2013 00:36:50 -0800 (PST) Message-ID: <20131114.083650.674.2@DOMY-PC> From: rank1seeker@gmail.com To: "Devin Teske" Subject: Re: Loader forth changes for customization Date: Thu, 14 Nov 2013 09:36:50 +0100 In-Reply-To: <18E6668A-3837-40D1-BCA0-9D68DCCD70AD@fisglobal.com> References: <5282E56F.4020307@freebsd.org> <52832003.8080406@freebsd.org> <09673101-DB54-4D25-9989-8C80D06E266B@fisglobal.com> <5283933E.30603@freebsd.org> <5283CBD1.9010606@freebsd.org> <86F0F59A-2DE0-42A3-9B8B-ADB1F3CA55A1@fisglobal.com> <20131114.080608.007.1@DOMY-PC> <18E6668A-3837-40D1-BCA0-9D68DCCD70AD@fisglobal.com> X-Mailer: POP Peeper (3.8.1.0) Cc: FreeBSD Hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Nov 2013 08:36:53 -0000 > > Um, > > > > Little of thread, but could you rewrite loader in just 1 task? > > That is, once it has been pulled by STAGE 2 boot, ALL loader's path should be RELATIVE to loader itself, instead currently using full path approach (/boot/...) > > > > I.e; > > Line: (from: '/sys/boot/common/interp.c') > > include("/boot/boot.conf"); > > into: > > include("boot.conf"); > > and so on ... > > > > Thanks. > > > > Is that true for the Forth layer? I didn't think there was a relative path. > Just tested on 9.2-R loader(8): > > Contents of /boot/loader.rc.local: > echo "Hello, World!" > > At loader(8) prompt: > OK include /boot/loader.rc.local > Hello, World! > OK include loader.rc.local > can't open 'loader.rc.local': no such file or directory > > -- > Devin No no. Loader's prompt, where you type CMD's ... is out of context. Normal loader's boot sequence should work with paths relative to loader binary itself. I.e; Upon boot it would pull 'defaults/loader.conf' as it is relative to it, instead via current full path '/boot/defaults/loader.conf' This isn't a current behaviour, but something that should be done. Domagoj