From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 8 16:11:34 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 24E9F106564A; Fri, 8 Jun 2012 16:11:34 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6CE198FC08; Fri, 8 Jun 2012 16:11:33 +0000 (UTC) Received: by bkvi18 with SMTP id i18so2429765bkv.13 for ; Fri, 08 Jun 2012 09:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:subject:date:content-type :content-transfer-encoding:in-reply-to:references:x-mailer; bh=WPKDj+37Vn5mJPfWOqh+ClPThLDtnQ1hEGBKxPGh6so=; b=d3PsErRXM+68ebYnsUYIu6pq5thE+N/SwberXGsuk6+CpoZ4sELLN8D/ODKWTxh5jV 7GQQwV/9I5jVGhdFlRCn4pyK4exwS5naf6utGVwrbPYs3ytJyCAwvbLLrZp6WKCHvPOG cRA0zuzozcnb8rxca+t9uu/JQOzOsCJ0dLiAsE9IhWE+S66/jVBoLh1Gy+8DycydiCZo 1VvIiHK4siBcBgMhB5XmpPbNGn9atmicOpc05hazYL7bxNRILOxnalIQFuym3wUUcN5O fb4PZnATrhkgRFF3ZP055KO8z/9VNZ6IFcvRGPyN0gs8q69/xbpqhVKjYhT6ZC087U18 CABA== Received: by 10.204.157.144 with SMTP id b16mr6644453bkx.12.1339171892278; Fri, 08 Jun 2012 09:11:32 -0700 (PDT) Received: from DOMYPC ([82.193.208.173]) by mx.google.com with ESMTPS id e20sm8179359bkv.10.2012.06.08.09.11.20 (version=SSLv3 cipher=OTHER); Fri, 08 Jun 2012 09:11:30 -0700 (PDT) Message-ID: <20120608.161129.283.3@DOMY-PC> From: rank1seeker@gmail.com To: "John Baldwin" , hackers@freebsd.org Date: Fri, 08 Jun 2012 18:11:29 +0200 Content-Type: text/plain; charset="Windows-1250" Content-Transfer-Encoding: quoted-printable In-Reply-To: <201206081118.29399.jhb@freebsd.org> References: <20120606.161514.685.1@DOMY-PC> <201206071116.33215.jhb@freebsd.org> <20120608.143300.329.2@DOMY-PC> <201206081118.29399.jhb@freebsd.org> X-Mailer: POP Peeper (3.8.1.0) Cc: Subject: Re: CD bootcode 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, 08 Jun 2012 16:11:34 -0000 > > First=0D=0A> > -----=0D=0A> > stage 2 boot '/boot/boot' AND = '/boot/cdboot' shouldn't be made into working with symlinks.=0D=0A> > = Just leave them, the way they are. First one can be navigated to loader = via 'boot.config' file.=0D=0A> > So only '/boot/cdboot' should be edited, = to react to the same 'boot.config' file as '/boot/boot' does.=0D=0A> > = Simply because they both target 'loader', 'boot.config' should work for = both bootcodes.=0D=0A> =0D=0A> Adding /boot.config support to cdboot is = non-trivial. Also, cdboot is=0D=0A> intended for read-only media, so = dynamic configuration via a file is not=0D=0A> quite as = useful.=0D=0A=0D=0Acdboot is a FreeBSD specific=0D=0AFact that it is = intended for RO media is irrelevant here, as stage 2 boot can also = reside on RO fs.=0D=0A=0D=0AFor cdboot, 'boot.config' file should give = instructions of full path to loader, nothing else (no other, stage 2 = boot's flags/functionality).=0D=0AHm, then again, if cdboot file would = inherit just that 1 functionality, then it can't share same config = file.=0D=0AHow about 'cdboot.config' file name?=0D=0A=0D=0AThanks to = boot.config, I specify full path to loader, so '/boot/boot' isn't = "halted" by symlink.=0D=0AIf cdboot would obey it in a same way, I = wouldn't have to patch it, by adding third path.=0D=0A=0D=0A=0D=0ADomagoj = Smol=E8i=E6