From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 8 15:21:36 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 0E7B01065674 for ; Fri, 8 Jun 2012 15:21:36 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id D8FD18FC12 for ; Fri, 8 Jun 2012 15:21:35 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 31C65B981; Fri, 8 Jun 2012 11:21:35 -0400 (EDT) From: John Baldwin To: rank1seeker@gmail.com Date: Fri, 8 Jun 2012 11:18:29 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p13; KDE/4.5.5; amd64; ; ) References: <20120606.161514.685.1@DOMY-PC> <201206071116.33215.jhb@freebsd.org> <20120608.143300.329.2@DOMY-PC> In-Reply-To: <20120608.143300.329.2@DOMY-PC> MIME-Version: 1.0 Content-Type: Text/Plain; charset="windows-1250" Content-Transfer-Encoding: 7bit Message-Id: <201206081118.29399.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 08 Jun 2012 11:21:35 -0400 (EDT) Cc: hackers@freebsd.org 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 15:21:36 -0000 On Friday, June 08, 2012 10:33:00 am rank1seeker@gmail.com wrote: > ----- Original Message ----- > From: John Baldwin > To: rank1seeker@gmail.com > Cc: hackers@freebsd.org > Date: Thu, 7 Jun 2012 11:16:33 -0400 > Subject: Re: CD bootcode > > > On Thursday, June 07, 2012 9:58:25 am rank1seeker@gmail.com wrote: > > > ----- Original Message ----- > > > From: John Baldwin > > > To: freebsd-hackers@freebsd.org > > > Cc: rank1seeker@gmail.com > > > Date: Thu, 7 Jun 2012 08:21:39 -0400 > > > Subject: Re: CD bootcode > > > > But even when loader is finally started, loader handles symlinks on UFS (kicked by '/boot/boot'), BUT fails so, on Rock-Ridge iso (kicked by > > '/boot/cdboot') > > > Looks like loader must be made into looking at Rock-Ridge extensions. > > > > It is src/lib/libstand/cd9660.c that would have to be patched. It already has > > limited Rock-Ridge support, so adding symlink support to cd9660_open() may not > > be that hard to do. > > > > -- > > John Baldwin > > > Problem should be solved in 2 groups/steps. > > First > ----- > stage 2 boot '/boot/boot' AND '/boot/cdboot' shouldn't be made into working with symlinks. > Just leave them, the way they are. First one can be navigated to loader via 'boot.config' file. > So only '/boot/cdboot' should be edited, to react to the same 'boot.config' file as '/boot/boot' does. > Simply because they both target 'loader', 'boot.config' should work for both bootcodes. Adding /boot.config support to cdboot is non-trivial. Also, cdboot is intended for read-only media, so dynamic configuration via a file is not quite as useful. > Second > ------ > 'loader' should be edited, to work with Rock-Ridge extensions. It already supports RR for names, it is merely symlink support that has to be added. -- John Baldwin