1 |
On Tuesday, 31 August 2021 20:21:58 BST Neil Bothwick wrote: |
2 |
> On Tue, 31 Aug 2021 14:21:35 -0400, Rich Freeman wrote: |
3 |
> > > If you are multibooting frequently and getting into the UEFI boot |
4 |
> > > menu to change the boot order or running efibootmgr is too much |
5 |
> > > hassle, then a 3rd party boot manager will be useful. Your choice of |
6 |
> > > GRUB, rEFInd, systemd-boot, syslinux, EFI executable image will be |
7 |
> > > installed and loaded/run by the UEFI firwmare from the ESP, with |
8 |
> > > which in turn you will select and load your desired OS. |
9 |
> > |
10 |
> > So, which (if any) of these options supports either: |
11 |
> > |
12 |
> > 1. An EFI partition plus /boot on zfs (with no limitations on pool |
13 |
> > config, ie it can be a root pool). |
14 |
> > 2. An EFI partition that contains everything. |
15 |
> > |
16 |
> > If I want to use grub+EFI with a zfs root it sounds like I'd need TWO |
17 |
> > boot partitions - an EFI partition (FAT32), and a /boot partition |
18 |
> > (anything, but if ZFS it needs to have controlled features). That |
19 |
> > seems even more messy than what I'm doing now. |
20 |
> |
21 |
> systemd-boot and refind both support everything on EFI. I am pretty sure |
22 |
> GRUB does too, but I have no reason to use GRUB with EFI. My setup on |
23 |
> this box is /boot on FAT32 and / (and everything else) on btrfs. I've |
24 |
> also used the same setup with ZFS. |
25 |
|
26 |
Any boot option on a UEFI MoBo requires an 'EFI System Partition' (ESP), |
27 |
formatted as VFAT. The UEFI firmware boot loader will list/load/run any *.efi |
28 |
software stored in the ESP compatible with the UEFI API, whether this is a |
29 |
boot loader, a kernel with an EFI stub, or some .efi diagnostic application. |
30 |
|
31 |
As long as your boot loader of choice, or kernel image and any initrd contains |
32 |
the requisite fs drivers, there will be no problem mounting and accessing |
33 |
whatever root fs needs to be accessed. |
34 |
|
35 |
GRUB contains a number of ZFS modules to do this job (zfscrypt.mod, |
36 |
zfsinfo.mod, zfs.mod) - not sure about the other boot managers. |
37 |
|
38 |
Typical GRUB installations have /boot/efi mounted on the ESP, with the |
39 |
grubx64.efi image on it, while the rest of the files, vmlinuz symlinks, etc. |
40 |
are on the root partition. |
41 |
|
42 |
Please beware, I have not used zfs to date, only btrfs, so the above merely |
43 |
reflects my understanding rather than in depth experience of the difficulty in |
44 |
managing such a setup. |