Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Nov 2018 23:36:13 +0200
From:      Toomas Soome <tsoome@me.com>
To:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: UEFI: How to go about updating the ESP with loader.efi during installworld
Message-ID:  <E90E3EA6-6B52-4D48-B080-9A5205423E4B@me.com>
In-Reply-To: <f92ed623-8190-c3b9-cc82-ace86b1c5646@freebsd.org>
References:  <5091656.8gLySxXtyI@photon.int.bluestop.org> <f92ed623-8190-c3b9-cc82-ace86b1c5646@freebsd.org>

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



> On 4 Nov 2018, at 23:25, Allan Jude <allanjude@freebsd.org> wrote:
> 
> On 2018-11-04 16:20, Rebecca Cran wrote:
>> I'm currently working on creating and updating the ESP (EFI System Partition) 
>> for UEFI booting during installation and installworld. 
>> 
>> During installation, with my changes it gets mounted on /boot/efi and loader.efi 
>> copied into /boot/efi/EFI/FreeBSD and /boot/efi/EFI/BOOT. An entry gets added to 
>> /etc/fstab as noauto.
>> 
>> The issue comes during installworld, where we'll need to update the loader, 
>> and I'm not sure how we should handle that. 
>> If NO_ROOT isn't defined, do we just "mount /boot/efi", overwrite the files then 
>> unmount it? What should we do if NO_ROOT _is_ defined?
>> 
> 
> Previous to now, installworld has not updated the boot blocks. You've
> had to manually run 'gpart bootcode' to change the boot blocks.
> 
> However, those boot blocks mostly just loaded /boot/loader, which was
> updated by installworld.
> 
> So I can see how this is not directly analogous.
> 
> I wouldn't depend on the /etc/fstab entry existing. I am not sure I want
> installworld randomly fobbing around in my EFI partition. Especially if,
> for example, my EFI/BOOT is not FreeBSD, but rEFInd or something.
> 

I  would not add fstab entry at all. First of all, what should I have there for my 3+1 raidz1?;) 

it is reasonable to have efi/freebsd directory, the efi/boot/bootx64.efi is hard one of course. But then again, it is problem only when we can not setup EFI bootmanager variables — the bootx64.efi is default when bootmgr is not set up.

rgds,
toomas

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E90E3EA6-6B52-4D48-B080-9A5205423E4B>