Re: gptboot rewrite, bootonce, etc.

From: John Baldwin <jhb_at_freebsd.org>
Date: Mon, 20 Sep 2010 09:31:56 -0400
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
Received on Mon Sep 20 2010 - 11:51:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:07 UTC