Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Nov 2018 16:25:26 -0500
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: UEFI: How to go about updating the ESP with loader.efi during installworld
Message-ID:  <f92ed623-8190-c3b9-cc82-ace86b1c5646@freebsd.org>
In-Reply-To: <5091656.8gLySxXtyI@photon.int.bluestop.org>
References:  <5091656.8gLySxXtyI@photon.int.bluestop.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--ekbsNzGMdBBySsi6KLR05qIpVRSKpCrSO
Content-Type: multipart/mixed; boundary="6av7yOaDe95c0joxVCWfdwJrSzMyQQRNK";
 protected-headers="v1"
From: Allan Jude <allanjude@freebsd.org>
To: freebsd-current@freebsd.org
Message-ID: <f92ed623-8190-c3b9-cc82-ace86b1c5646@freebsd.org>
Subject: Re: UEFI: How to go about updating the ESP with loader.efi during
 installworld
References: <5091656.8gLySxXtyI@photon.int.bluestop.org>
In-Reply-To: <5091656.8gLySxXtyI@photon.int.bluestop.org>

--6av7yOaDe95c0joxVCWfdwJrSzMyQQRNK
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 2018-11-04 16:20, Rebecca Cran wrote:
> I'm currently working on creating and updating the ESP (EFI System Part=
ition)=20
> for UEFI booting during installation and installworld.=20
>=20
> During installation, with my changes it gets mounted on /boot/efi and l=
oader.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 loa=
der,=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 f=
iles then=20
> unmount it? What should we do if NO_ROOT _is_ defined?
>=20

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.

--=20
Allan Jude


--6av7yOaDe95c0joxVCWfdwJrSzMyQQRNK--

--ekbsNzGMdBBySsi6KLR05qIpVRSKpCrSO
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQIcBAEBAgAGBQJb32PJAAoJEBmVNT4SmAt+so4P/3/IJfp6C9gZP1rRyKyqHDAA
HZoQuxOof2ZT1BCaM5J2TgrEuLNegvt35WNXdIyGXZqKqOGxXYu1aQ7zOc8Sq/W6
RsnD5W+l0xi+8O5RK7GTxW+4nlojRLHIxkDAZVhFadtm/w7sHgmdEFJ1izPz+pIM
3zkxHy5GJAAKyVtd2gA7cN61Q8YCNeLieB2A7XhM0VAc6uhY8rA5nwUE8XZk0pwQ
zGT+/28a5uXk8OO/E3qFRTktap8kxQ1ugbXtyTWlde5OUE/c7S7w/kArOrSHGvv1
KBPXE9DyIy0/e0jZRYjeW8wp2BQS+qUKz79JYIiYgWAHHjnjk9evzfaKsyqNsAXJ
GkSVU7f4yE4Zqwyd6LSr9SI5UsPs0BbU1pcLbr4gc1d/rp5iFKD4zmIG53k0K10Z
jWHF4LMqiPe8thaWptQxjadSNDlmYe5zIySpqi6GAqPQWRVz7D3COm6ePNoNu6pb
v6Au3CmpjwGfhjaohGracdsn9MgluV0POiKtyhS7mrmSbnTzCLgpgzsIOiS1gbc/
NAsWmgKyPRlNy6xJabxvZbrXQZyOagAnDr9aGD8UCRLMiRCaufMeTBfhJ8emHNYX
QCpStWK3dC2lAcjWFoHSEIRkvRnQ0xkOHi8Q/uQe/GDjU174AXwIjyK3hioELOWu
C6icsUz0FnBmh26j4pnV
=zCCF
-----END PGP SIGNATURE-----

--ekbsNzGMdBBySsi6KLR05qIpVRSKpCrSO--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f92ed623-8190-c3b9-cc82-ace86b1c5646>