Why to mount /boot/efi by default when installing 13?

Switch2BSD

Member

Reaction score: 12
Messages: 81

Hello,
I am curious about the reason in which bsdinstall mount /boot/efi (in fstab) by default, and for what to mount it?
Sometimes, I delete a line with this mounting in /etc/fstab, the system still runs normally; because EFI partion was read before this mounting.
Thank you for clarifying me.
 

Zirias

Son of Beastie

Reaction score: 1,698
Messages: 2,869

It's easier to update EFI bootcode that way. Unless you want to do that, there's not really a need to have it mounted. The old approach was to just update the entire EFI partition from a FAT image file, but that wasn't a good solution.
 
OP
S

Switch2BSD

Member

Reaction score: 12
Messages: 81

Nice thanks to both of you,
When I have zroot on 3-way or 4-way mirror, I've used to copy manually to EFI partitions on each of them:
Code:
# cp /boot/loader.efi /boot/efi/efi/boot/BOOTx64.efi
Still I need to let a sole /boot/efi mounted?
 

mer

Aspiring Daemon

Reaction score: 395
Messages: 626

Do you need to have /boot/efi mounted automatically to run the system normally?
No.
If the installer is putting a line in /etc/fstab, I would set the options to include "noauto" something like rw,noauto simply to make it trivial to later issue a mount command.
But that's just me.
There may be valid times when you want to automount it (say a service that automatically updates it), but you need to figure that out.
 
Top