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>

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


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

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

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 =E2=80=94 the bootx64.efi is default =
when bootmgr is not set up.

rgds,
toomas=



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