From owner-freebsd-arch@FreeBSD.ORG Mon Sep 20 13:51:44 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 670AD1065670; Mon, 20 Sep 2010 13:51:44 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 34FCC8FC16; Mon, 20 Sep 2010 13:51:44 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id D701046B23; Mon, 20 Sep 2010 09:51:43 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id DBDAF8A04F; Mon, 20 Sep 2010 09:51:42 -0400 (EDT) From: John Baldwin To: freebsd-current@freebsd.org Date: Mon, 20 Sep 2010 09:31:56 -0400 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20100819; KDE/4.4.5; amd64; ; ) References: <20100917234542.GE1902@garage.freebsd.pl> In-Reply-To: <20100917234542.GE1902@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201009200931.57086.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Mon, 20 Sep 2010 09:51:42 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: Pawel Jakub Dawidek , freebsd-arch@freebsd.org Subject: Re: gptboot rewrite, bootonce, etc. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2010 13:51:44 -0000 On Friday, September 17, 2010 7:45:42 pm Pawel Jakub Dawidek wrote: > - Split code shared by almost any boot loader into separate files and > clean up most layering violations: I like this in general. I worry that the space constraints for boot2 will prevent it from using this though as it depends on inlining almost everything to fit into its allotted space. At least it can use the rbx.h header. > - Introduce three new GPT attributes: > > bootme - this is bootable partition > bootonce - try to boot from this partition only once > bootfailed - we failed to boot from this partition The 'bootme' attribute alone is a boon. One of the problems with EFI was figuring out a sane way to choose the root partition. EFI on ia64 currently uses the 'first partition wins' strategy, and this will be a definite improvement. To that end this should also help with EFI on x86. -- John Baldwin