Re: FreeBSD 14.1 and UEFI boot ignores bootme flag

From: Karl Denninger <karl_at_denninger.net>
Date: Tue, 13 Aug 2024 20:04:21 UTC
On 8/13/2024 16:02, Chris wrote:
> On 2024-08-13 10:23, Tomek CEDRO wrote:
>> On Tue, Aug 13, 2024 at 3:30 PM Daniel Braniss <danny@cs.huji.ac.il> 
>> wrote:
>>> (..)
>>> At some point I succeeded in deleting the dvd, but now I see its back.
>>
>> This may be added by BIOS / Setup :-)
>>
>>> So how do I add a second boot partition?
>>
>> Use efibootmgr as imp suggested and add another entry with desired
>> boot information, you may then select this new entry as the default.
>> It will show up in BIOS / Setup menu and you can change order over
>> there.. but the entry needs to be added with efibootmgr :-)
>>
>> No worries I had the same problem too some time ago, also found
>> reference to bootme flag which did not work (should be removed from
>> man pages?). Now I sometimes use F8 at boot to select different system
>> to boot.. but there are good looking menu like bootloaders for UEFI
>> like reEFInd [1], Clover [2], LibreBoot [3]. Maybe we need some more
>> documentation on this? :-)
>>
> I too found efibootmgr(8) unnecessarily cumbersome. So much so, that I 
> ended writing
> a script to use it more effectively.
> In the end I downloaded a refind [1] image. Wrote it to a USB stick, 
> booted it and
> installed it. It's dead simple, just does the right thing, and just 
> works. Almost never
> need to futz with anything. I'm no stranger to (U)EFI or the boot 
> process. But IMHO
> FreeBSD is not (average) user friendly in the (multi) boot department. 
> Either multiple
> FreeBSD, or OS's. Maybe I should make a port out of refind, or get 
> permission to integrate
> some of it into $BASE.
>
> 1.) https://en.wikipedia.org/wiki/REFInd
>
> I'm currently using the 13.3.2 flashdrive image on a 15-current install
> https://sourceforge.net/projects/refind/files/0.13.1/refind-flashdrive-0.13.2.zip/download 
>
>
> I simply unpacked it, and performed dd 
> if=./refind-flashdrive-0.13.2.img of=/dev/da0 bs=1m
> I'm booting FreeBSD, OpenBSD, Slackware, and Windows11 on the laptop 
> I'm writing this from.
> In your computer setup; simply choose refind as your default boot, and 
> your done.
>
> HTH
>
> --Chris
>
Refind is an excellent option if you have multiple OSs installed on a 
given machine.

If the intent is simply to ping-pong FreeBSD partitions then either what 
I suggested for a UFS filesystem setup or beadm for zfs is easier and 
faster.

-- 
Karl Denninger
karl@denninger.net
/The Market Ticker/
/[S/MIME encrypted email preferred]/