From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 7 12:37:53 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74FB1106566C for ; Thu, 7 Jun 2012 12:37:53 +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 416AA8FC1B for ; Thu, 7 Jun 2012 12:37:53 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 920D5B977; Thu, 7 Jun 2012 08:37:52 -0400 (EDT) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Thu, 7 Jun 2012 08:21:39 -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> In-Reply-To: <20120606.161514.685.1@DOMY-PC> MIME-Version: 1.0 Content-Type: Text/Plain; charset="windows-1250" Content-Transfer-Encoding: 7bit Message-Id: <201206070821.40068.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 07 Jun 2012 08:37:52 -0400 (EDT) Cc: rank1seeker@gmail.com 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: Thu, 07 Jun 2012 12:37:53 -0000 On Wednesday, June 06, 2012 12:15:14 pm rank1seeker@gmail.com wrote: > FreeBSD's CD bootcode '/boot/cdboot' is targeting stage 3 boot -> loader > For example, stage 2 boot '/boot/boot' is attempting the same. > > In my case of a '/boot/loader', '/boot' is a symlink! > > So if '/boot/boot' works with symlinks, why '/boot/cdboot' doesn't! > Yes, I did use Rock-Ridge extensions, upon creation of 'cd.iso' Because I didn't make cdboot's lookup routine handle symlinks. It also doesn't look at Rock-Ridge extensions and only uses the base ISO-9660 directory entries. That was enough fun to write in assembly. OTOH, CD sectors are 2k, so you do have that much room to work with and can probably fit a more advanced directory lookup into cdboot. I'm happy to review any patches you come up with. -- John Baldwin