Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Dec 2017 15:06:42 -0800
From:      Nathan Whitehorn <nwhitehorn@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: UEFI booting survey
Message-ID:  <5dc9d252-cb0d-8d4d-979b-d9faaa3ff1b6@freebsd.org>
In-Reply-To: <CAPQ4ffsCGomvfguUC28%2BppnfL_YU8NLC8nRUjQjohCPLtXTm1w@mail.gmail.com>
References:  <CANCZdfo5=5vKZ2cY8k7K3L%2BbfEPQREr9yB=EsVPiMkAStCq_SA@mail.gmail.com> <201712190106.vBJ16LpE018835@pdx.rh.CN85.dnsmgr.net> <CANCZdfrGruN7NDZMGBBOw1dWcJs%2BdaQK8MC9W0-U7pwHF-q9Wg@mail.gmail.com> <CAPQ4ffsCGomvfguUC28%2BppnfL_YU8NLC8nRUjQjohCPLtXTm1w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On 12/19/17 14:38, Oliver Pinter wrote:
> On Tuesday, December 19, 2017, Warner Losh <imp@bsdimp.com> wrote:
>
>>
[snip]
>>> Or the following pseudo-code with all the weird special cases removed for
>>> clarity
>>>
>>> load loader.efi from ESP
>>> if BootXXXX uefi variable holds a second path, use that for root/kernel
>>> otherwise if an override variable holds a kernel/root path, use that
>>> otherwise scan for a usable ZFS pool, use that if it exists
>>> otherwise use the same partition loader.efi was booted from for
>> root/kernel
>>> if it's usable
>>> otherwise use the first UFS partition on the ESP that's usable.
>> use the ACTIVE ufs partition, not the first, I can have more than 1 slice,
>> only 1 of them can be set active.  Do not use any ufs partitions if they
>> are not in active slices, it is possible to have 0 partitions set active.
>>
>>
>> Active is not a GPT concept. UEFI makes it hard to implement since there is
>> no good API to get and set the flags FreeBSD's gptboot uses to hack this
>> concept in. Active is done via BootOrder UEFI variable. Loader.efi and
>> boot.efi completely ignore this today. I have no plans on changing that.
>
> And what's about the bootme and bootonce flags in gpart?  They are
> freebsdism? Or they are the equivalent of active in the UEFI standard?
>

They are a FreeBSD-ism. Because UEFI handles parsing the GPT tables 
internally, it is not even possible to read them from loader.efi.
-Nathan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5dc9d252-cb0d-8d4d-979b-d9faaa3ff1b6>