Port-amd64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] BIOS boot vs EFI system partition mountpoint



On Sat, Aug 20, 2022 at 12:15:11PM -0700, Brian Buhrow wrote:
> 	hello.  Is there a need to have the EFI partition mounted at run time?  I run several
> EFIboot systems, but the boot partition isn't actually mounted once the system gets up in
> multiuser mode?  

My personal view is that it is best to have it not mounted usually, but
I always create a fixed directory for it and have a "noauto" entry
for it in /etc/fstab.

For most of my machines the current name is /ofw (but I plan to change it
to /boot if this proposal makes it in).

This setup has a few advantages:

 - tools / scripts / my dim memory can use a fixed dir to make it available
   for bootloader updates

 - the exact device mounted varies a lot and, this provides a fixed
   place to encode that information (in /etc/fstab)

 - during normal operation, it is very hard to damage your boot setup
   (this point is quite weak and probably only a serious issue if you
   are careless as root and have a build setup for lots of different
   architectures and risk to overwrite the bootloader with a wrong
   architecture one or similar)

My typical /ofw partition also has an emergency "known working" kernel and
a matching extracted /rescue.


Martin


Home | Main Index | Thread Index | Old Index