Page MenuHomeFreeBSD

Put /boot/efi back in mtree

Authored by nwhitehorn on Mar 4 2021, 7:59 PM.
Referenced Files
Unknown Object (File)
Tue, May 23, 4:17 PM
Unknown Object (File)
Fri, May 19, 1:41 PM
Unknown Object (File)
Mon, May 15, 9:50 AM
Unknown Object (File)
Mon, May 8, 1:43 PM
Unknown Object (File)
Mon, May 8, 1:33 PM
Unknown Object (File)
Apr 13 2023, 6:53 PM
Unknown Object (File)
Apr 6 2023, 3:33 PM
Unknown Object (File)
Apr 5 2023, 3:05 AM



The attached patch puts /boot/efi back in mtree, so it is created on systems without an ESP as well as systems with an ESP (I still don't really understand why we want this...). To make installations work so that only real ESPs get set up with the loader and efibootmgr, the logic in the installer is switched from whether /boot/efi exists (which it now always does) to whether it is present as a mountpoint in the in-progress fstab.

NOTE: I have not tested this fully yet, but it takes long enough to do end-to-end build and test for installer changes that I'm putting this up for review now to save time. It's a 2-line diff anyway, so I'm guessing most of the discussion will be on concept rather than any bugs that might exist.

Diff Detail

rG FreeBSD src repository
Lint Not Applicable
Tests Not Applicable

Event Timeline

nwhitehorn created this revision.
This revision is now accepted and ready to land.Mar 4 2021, 11:20 PM
rgrimes added a subscriber: rgrimes.

This is a move in the right directions, at least this is state created by the installer.

Confirmed that I can still install on powerpc64le in qemu with this change, and that the empty /boot/efi directory exists again.

This is a move in the right directions, at least this is state created by the installer.

It was always state created by the installer, for the record. It's just different state now (whether it make a directory earlier vs. whether it added that directory to /etc/fstab after making it).

This revision was automatically updated to reflect the committed changes.