Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Mar 2018 11:42:52 +0700
From:      Victor Sudakov <vas@mpeks.tomsk.su>
To:        Trond Endrest?l <Trond.Endrestol@fagskolen.gjovik.no>
Cc:        FreeBSD questions <freebsd-questions@freebsd.org>
Subject:   Re: Solved. Re: Dualboot and ZFS
Message-ID:  <20180325044252.GB95361@admin.sibptus.transneft.ru>
In-Reply-To: <alpine.BSF.2.21.1803231156300.66427@mail.fig.ol.no>
References:  <ec1e6976-3385-a66f-5938-ad09abae590f@fechner.net> <20180319171027.GA84127@admin.sibptus.transneft.ru> <alpine.BSF.2.21.1803200810380.66427@mail.fig.ol.no> <20180320094625.GA24463@admin.sibptus.transneft.ru> <alpine.BSF.2.21.1803201232590.66427@mail.fig.ol.no> <20180321061231.GA73086@admin.sibptus.transneft.ru> <alpine.BSF.2.21.1803210830250.66427@mail.fig.ol.no> <20180322015043.GA16501@admin.sibptus.transneft.ru> <alpine.BSF.2.21.1803231122360.66427@mail.fig.ol.no> <alpine.BSF.2.21.1803231156300.66427@mail.fig.ol.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Trond Endrest?l wrote:
> 
> > > 1. If I have more than one freebsd-ufs partition, how can I configure
> > > boot1.efi (AKA /EFI/BOOT/BOOTX64.EFI) to boot the loader from a
> > > particular partition, not from the first one?
> > 
> > I doubt you can without modifying the source code. Such has never been 
> > an issue at my end. Maybe someone else will chime in.
> 
> This is from uefi(8) on fairly recent stable/11:
> 
>            2.   boot1.efi reads boot configuration from /boot.config or
>                 /boot/config.  Unlike other first-stage boot loaders,
>                 boot1.efi passes the configuration to the next stage boot
>                 loader and does not itself act on the contents of the file.
>            3.   boot1.efi searches partitions of type freebsd-ufs and
>                 freebsd-zfs for loader.efi.  The search begins with partitions
>                 on the device from which boot1.efi was loaded, and continues
>                 with other available partitions.  If both freebsd-ufs and
>                 freebsd-zfs partitions exist on the same device the
>                 freebsd-zfs partition is preferred.  boot1.efi then loads and
>                 executes loader.efi.
> 
> Apparently, there are some options. Using /boot.config or /boot/config 
> on the ESP. Using /boot/loader.conf whereever /boot/loader.efi 
> resides. Relocating loader.efi to wanted the UFS partition. Note the 
> preference towards ZFS when both are present. I don't have any 
> experience using either option.

IMHO boot1.efi could at least honor the "bootme" flag if there are
several freebsd GPT partitions, the way gptboot does.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
AS43859



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180325044252.GB95361>