• [gentoo-user] rescue cd for zfs 2.1 or thereabouts

    From Rich Freeman@21:1/5 to neil@digimed.co.uk on Mon Aug 23 20:40:02 2021
    On Mon, Aug 23, 2021 at 2:13 PM Neil Bothwick <neil@digimed.co.uk> wrote:

    All I could find was this:

    http://git.savannah.gnu.org/cgit/grub.git/tree/grub-core/fs/zfs/zfs.c#n276

    For a program with so much documentation, GRUB seems sorely lacking in
    this respect. It makes me glad I decided to keep /boot off my zpools.


    Even this seems lacking. For example, encryption is not read-only
    compatible (which seems obvious), and it isn't listed as compatible in
    the source code you linked. However, grub-mount supposedly uses the
    grub drivers and it has a command line option to provide an encryption
    key. Maybe it is only compatible with the grub-mount command and not
    at boot time, but if so that seems like something worth pointing out
    since one of the purposes of grub-mount is to test filesystem
    compatibility.

    --
    Rich

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to Rich Freeman on Mon Aug 23 20:20:06 2021
    On Mon, 23 Aug 2021 14:02:29 -0400, Rich Freeman wrote:

    Aren't new features only applied to newly created pools and datasets?
    If /boot was compatible with GRUB it should still be. At least that's
    how I read the einfo messages zfs spits out.

    That is correct. I want to know when I can enable the new features.
    Of course, it would also be nice to know which features must be
    disabled when creating a new boot pool.

    It is just frustrating that as far as I can tell, there is no
    documentation about what features grub supports. It wouldn't be hard
    for them to just say "here are the zpool features known to work in
    grub version foo." The best I've found is the Arch wiki, which has
    the disclaimer that it is probably out of date and to check the man
    pages, but of course the man pages don't actually say anything.

    All I could find was this:

    http://git.savannah.gnu.org/cgit/grub.git/tree/grub-core/fs/zfs/zfs.c#n276

    For a program with so much documentation, GRUB seems sorely lacking in
    this respect. It makes me glad I decided to keep /boot off my zpools.


    --
    Neil Bothwick

    Is that "woof" feed me; "woof" walk me; "woof" there's a burglar? What??

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmEj5UsACgkQ92eFu0QS MJgM9g//X6Z2+4g7aE+VipuF91ZOksna5aIc9mLiqsn2h9GGsF8kj57Hmt0QNo/k rEdgrSBWNniAQ5sxw32e00zuW6Ms5J9VCMy0efgw530lufW5XW71CKvo1jO6/3dB M3kTe+dOC3aPGhlnziQL4RXSPRYivY9eK8NtJCF8D0DAbW6+7u7kpKbkIlNmS9xx qr7ekksn+Ve6BTsrPUt4mTAJofkuMxX6U03hEXmzIdCD/+KGFsQDYiFkZBjTxNAa aBC22wn6mHoyhp8zisjxkhTnxB3FaZ9fFXEkNPsDbUKJ2qVNuzJ+w2ehoGOORppD QcvrkVRKIj6WitCA+UlZAoWQNwS7UxyQMsSo9Yzh+508mOA/pDs97OqFEynQUSzP Bg08tnV39GQUSjjG6xAai9p/j8kmvMv4+SML0jLo425NOYOrbetiSS4akkSU/4fY j80Wl4LBK98rml15YWJAV5e9T/BIzBxB6IZcvDasKJs8X3K+eOIv7lB7nsBROuAc C9GE2SP48U8gG4B/hwN9vM+fBhy6+nZshQU3NcwEoz83/y12uJ6t78GDxgXs5Lmj HuosS0a889CuDosMyVGarQB+Jc8V/2kwIhhWR+/RtCSPIWOQrhDHPdY6s0nyaTeB GXUTkmxR+zE51clHOBhBbxEe+FAoMG4Inj8pNeF+5IRTc4ldhLE=
    =mScG
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Vitor Hugo Nunes dos Santos@21:1/5 to All on Mon Aug 23 22:00:03 2021
    You set yourself up for failure by sharing the same pool for /boot and root.Here's the flags you're meant to use for your boot pool:https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/Debian%20Buster%20Root%20on%20ZFS.html#step-2-disk-
    formattingUnder "Create boot pool".GRUB purposefully has lacking documentation, as they are not friendly towardsZFS as a whole, and also because most people doing ZFS nowadays do an EFISTUBsetup with no GRUB, exactly to avoid these issues.August
    23, 2021 3:30 PM, "Rich Freeman" <rich0@gentoo.org> wrote:> On Mon, Aug 23, 2021 at 2:13 PM Neil Bothwick <neil@digimed.co.uk> wrote:> >> All I could find was this:>> >> http://git.savannah.gnu.org/cgit/grub.git/tree/grub-core/fs/zfs/zfs.c#n276>>
    For a program with so much documentation, GRUB seems sorely lacking in>> this respect. It makes me glad I decided to keep /boot off my zpools.> > Even this seems lacking. For example, encryption is not read-only> compatible (which seems obvious),
    and it isn't listed as compatible in> the source code you linked. However, grub-mount supposedly uses the> grub drivers and it has a command line option to provide an encryption> key. Maybe it is only compatible with the grub-mount command and not>
    at boot time, but if so that seems like something worth pointing out> since one of the purposes of grub-mount is to test filesystem> compatibility.> > --> Rich

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to Vitor Hugo Nunes dos Santos on Mon Aug 23 22:20:01 2021
    On Mon, 23 Aug 2021 19:50:38 +0000, Vitor Hugo Nunes dos Santos wrote:

    GRUB purposefully has lacking documentation, as they are not friendly
    towards ZFS as a whole

    That's ridiculous, if they can support it with code, they can support it
    with documentation.

    and also because most people doing ZFS nowadays
    do an EFISTUB setup with no GRUB, exactly to avoid these issues.

    What about those for whom EFI is not an option?


    --
    Neil Bothwick

    "Most problems go away if you just wait long enough. It might look like
    I'm standing motionless but I'm actively waiting for our problems to go
    away. I don't know why this works but it does."
    Scott Adams, Dilbert comic

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmEkAYIACgkQ92eFu0QS MJha9xAAiOQTx5ykvS8EOj+zRmpUT1H0p6jIE8PdNpGuAJfBtUo1Vy2thR5NzYIL YSgLvfyxBqPUivnumlmmpOq7GN5vM9SOnHZv4NsvrYL4N/NO5fkO9vAca6054ltO 7P/RMcoELJuYoraE5uPqNBWoMLiqYuRnvRT24IDvJJ4f+hUJJZTfFFfDGCbY+f6W ODHXNTEjGZWYR9zDBCcc6OzIutUjjy78osPf+hmKNmy9y01g0SJmTKY0D6VSGORa MyW8d85wH/dvce/tp6heecAWwIMnxk72LQHu/zLrHMO8BUNOHnqyS6fGUzr9OId7 1Xc1Qo5q4iUtdQmUPPK1gibkDwrpIK/7s+0NRQnNMscAdMxkxBoweCwI0bK8Zw+u u/0deEW5+3JLgkMRuATU1MsLb7Ls7pJnKpRnNBCw+3lv0Z7ypBGktZudsYr2pwlK 2rUMx572PM3ooShqsiLhG6uY+BpcuO4TQEM2n8umOlAghq1D+tVQ+mhlhY3y6JMg O2eauP2+r44a6Hg9VLVxa26tWY7LQ8OnBbcpQ5Bubi6c8S4cyzwB2iPiOlYR+h72 qUTGawKJPH7rDS+brzs7B40sm2PNb/m3mjAudvrBcI+8vh+Vd4456zhifiODpNsT qaKjoJg6r9mCaS/itB
  • From Vitor Hugo Nunes dos Santos@21:1/5 to All on Mon Aug 23 22:20:02 2021
    To expand on this even further:GRUB usage with ZFS, in my experience, requires the following patch:https://vhns.com.br/pix/grub-zfs-patch.htmlI took it from GRUB's mailling list. I don't really recall who wrote it.August 23, 2021 4:51 PM, "
    Vitor Hugo Nunes dos Santos" <vitorhugo@teknik.io> wrote:> You set yourself up for failure by sharing the same pool for /boot and root.> Here's the flags you're meant to use for your boot pool:> > https://openzfs.github.io/openzfs-docs/Getting%
    20Started/Debian/Debian%20Buster%20Root%20on%20ZFS.ht> l#step-2-disk-formatting> > Under "Create boot pool".> GRUB purposefully has lacking documentation, as they are not friendly towards> ZFS as a whole, and also because most people doing ZFS
    nowadays do an EFISTUB> setup with no GRUB, exactly to avoid these issues.> > August 23, 2021 3:30 PM, "Rich Freeman" <rich0@gentoo.org> wrote:> >> On Mon, Aug 23, 2021 at 2:13 PM Neil Bothwick <neil@digimed.co.uk> wrote:>> >>> All I could find
    was this:>>> >>> http://git.savannah.gnu.org/cgit/grub.git/tree/grub-core/fs/zfs/zfs.c#n276>>> >>> For a program with so much documentation, GRUB seems sorely lacking in>>> this respect. It makes me glad I decided to keep /boot off my zpools.>> >>
    Even this seems lacking. For example, encryption is not read-only>> compatible (which seems obvious), and it isn't listed as compatible in>> the source code you linked. However, grub-mount supposedly uses the>> grub drivers and it has a command line
    option to provide an encryption>> key. Maybe it is only compatible with the grub-mount command and not>> at boot time, but if so that seems like something worth pointing out>> since one of the purposes of grub-mount is to test filesystem>>
    compatibility.>> >> -->> Rich

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Vitor Hugo Nunes dos Santos@21:1/5 to All on Mon Aug 23 22:30:01 2021
    Don't complain to me on the Gentoo mailling list.Go bother:A.The ZFS mailling listB.The GRUB mailling listIIRC this has to do with the whole CDDL x GPL situation.On the topic of not having UEFI as a possibility:Either upgrade your machine or
    go back to the steps mentioned above.I don't mean to be rude, it's just the situation of things right now.I also wish GRUB properly supported ZFS, to the point of letting me setall it's features on a single pool and use boot environments.August 23,
    2021 5:15 PM, "Neil Bothwick" <neil@digimed.co.uk> wrote:> On Mon, 23 Aug 2021 19:50:38 +0000, Vitor Hugo Nunes dos Santos wrote:> >> GRUB purposefully has lacking documentation, as they are not friendly>> towards ZFS as a whole> > That's
    ridiculous, if they can support it with code, they can support it> with documentation.> >> and also because most people doing ZFS nowadays>> do an EFISTUB setup with no GRUB, exactly to avoid these issues.> > What about those for whom EFI is not an
    option?> > --> Neil Bothwick> > "Most problems go away if you just wait long enough. It might look like> I'm standing motionless but I'm actively waiting for our problems to go> away. I don't know why this works but it does."> Scott Adams,
    Dilbert comic

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Covici@21:1/5 to Neil Bothwick on Mon Aug 23 23:00:02 2021
    On Mon, 23 Aug 2021 14:13:30 -0400,
    Neil Bothwick wrote:

    [1 <text/plain; US-ASCII (quoted-printable)>]
    On Mon, 23 Aug 2021 14:02:29 -0400, Rich Freeman wrote:

    Aren't new features only applied to newly created pools and datasets?
    If /boot was compatible with GRUB it should still be. At least that's
    how I read the einfo messages zfs spits out.

    That is correct. I want to know when I can enable the new features.
    Of course, it would also be nice to know which features must be
    disabled when creating a new boot pool.

    It is just frustrating that as far as I can tell, there is no
    documentation about what features grub supports. It wouldn't be hard
    for them to just say "here are the zpool features known to work in
    grub version foo." The best I've found is the Arch wiki, which has
    the disclaimer that it is probably out of date and to check the man
    pages, but of course the man pages don't actually say anything.

    All I could find was this:

    http://git.savannah.gnu.org/cgit/grub.git/tree/grub-core/fs/zfs/zfs.c#n276

    For a program with so much documentation, GRUB seems sorely lacking in
    this respect. It makes me glad I decided to keep /boot off my zpools.

    I did exactly that -- when you emerge zfs, it gives you the create
    command, so you can tell by that the features it wants, but there
    seems to be no good reason to have a boot pool, I can afford the 1 or
    2 gig space.
    So back to my original question, I downloaded -- after a lot of
    trouble finding it -- the Ubuntu 21.04 live server as they call it,
    but I cannot find any documentation as to how to use it as a rescue
    disk -- seems to be just an install disk. Am I missing something
    here?

    --
    Your life is like a penny. You're going to lose it. The question is:
    How do
    you spend it?

    John Covici wb2una
    covici@ccs.covici.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to John Covici on Mon Aug 23 23:30:02 2021
    On Mon, 23 Aug 2021 16:57:11 -0400, John Covici wrote:

    So back to my original question, I downloaded -- after a lot of
    trouble finding it -- the Ubuntu 21.04 live server as they call it,
    but I cannot find any documentation as to how to use it as a rescue
    disk -- seems to be just an install disk. Am I missing something
    here?

    Use the desktop disc, I don't think the server one is a live environment
    (it wouldn't make much sense for a server). Either use an xterm on the
    desktop or find the invocation to boot to a console, possibly adding "systemd.unit=multi-user.target" to the kernel options.


    --
    Neil Bothwick

    You are a completely unique individual, just like everybody else.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmEkEWAACgkQ92eFu0QS MJjnjA/+JVlY2Hi/qNih3C5cLimKr77iYBkWsUBigQVCd/tTZPdHWAk4GBKVs6k0 1ie+mNSukvg2VFyrE9HxwdCdlwexkcNIvGD8kuvBwmGJ93IcoEQmIBzEd4q/aDG8 8h74FqXY4jrqjPOnyUU036/R368Jv9pQHeqxPQbyYmkBBj98I/TA8myXErWrQRNe itMamNyhnCippgz95Bempbb+4zA/fM27I30RYR6u7NzVoGjYkPShYKxgSZor59H9 T7l7eDVrInKTa7xyORT19rTrPS3qT7j5XrnL76DaS4MzpSw1LpVVBmEQjmvSucMg 1v2xbRlvUPqARgnAGA3fmFNRMO5UT7NGLzZNmjyxzThVGgXELmy83YFzSc8FCgEA 8BGHVwjP7r7b2PLxC93wM4SVaPI4a+V9O2tXsGguj78LCyinfL5j3FNkWRSUxamf Z48/mVDZ2zv24UaYyQOjOtLTmKTfbipKrad6gIvXmIVc5vn2htwHTEFnFDabLao+ 9bZ36LqWgzdZtdCTuobNN2FI3r4YPhTqbZ5dtyy6nerpywhmw7xPu4hpcBgPF2eA uFhO3LeP7XyVQnSoveX3Fpg72QCgF3RpunHpcpLXor45QKXnhI0xVwym9f6VxwhQ MBW4ZFIhiIHnioGc4kJL9PzS8zKsrJoUVHK81gNISxYcplrvo3Q=
    =GMBS
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Covici@21:1/5 to Meik Frischke on Mon Aug 23 23:20:02 2021
    On Mon, 23 Aug 2021 13:38:45 -0400,
    Meik Frischke wrote:

    Am Mo., 23. Aug. 2021 um 10:15 Uhr schrieb John Covici <covici@ccs.covici.com>:

    Hi. I have been using 5.4 lts kernels for a while, but it seems I
    need to change to 5.10 lts -- even Debian is now using 5.10, so it
    seems time to do this.

    Now, the problem is that I am using zfs and will not give it up, and
    the version I have been using 0.8.6 is no longer supported in 5.10
    versions of the kernel. So, I need a newer version of zfs and a
    rescue cd in case I get into trouble. Sysresc seems to no longer be compatible withgentoo linux, so what is available? I could use gentoo catalyst to make something -- I have done that in the past, but its
    quite a bit of work and I would prefer if there were something
    available I could use out of the box.

    Thanks in advance for any suggestions.


    Hi,

    LRS (Linux Recovery System) [1] may be an alternative. It is a
    Gentoo-based live system with ZFS support and was (partly) inspired by
    the move of SystemRescue to Arch.
    Latest changelog states:

    ============ 20210820.17 ============
    [X] Multiple updates and rebuilds applied
    [X] Kernel updated to 5.10.60 + ZFS modules

    It seems to be updated regularly and may be worth a try.

    Regards,
    Meik

    [1] https://forums.gentoo.org/viewtopic-t-1106306.html


    I will definitely check this out -- Thanks.

    --
    Your life is like a penny. You're going to lose it. The question is:
    How do
    you spend it?

    John Covici wb2una
    covici@ccs.covici.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Covici@21:1/5 to Neil Bothwick on Tue Aug 24 09:00:02 2021
    On Mon, 23 Aug 2021 17:21:35 -0400,
    Neil Bothwick wrote:

    [1 <text/plain; US-ASCII (quoted-printable)>]
    On Mon, 23 Aug 2021 16:57:11 -0400, John Covici wrote:

    So back to my original question, I downloaded -- after a lot of
    trouble finding it -- the Ubuntu 21.04 live server as they call it,
    but I cannot find any documentation as to how to use it as a rescue
    disk -- seems to be just an install disk. Am I missing something
    here?

    Use the desktop disc, I don't think the server one is a live environment
    (it wouldn't make much sense for a server). Either use an xterm on the desktop or find the invocation to boot to a console, possibly adding "systemd.unit=multi-user.target" to the kernel options.

    OK, I will check that out, thanks. It looks like that complete gentoo system mentioned in the forums is looking decent, except its quite large, I
    am checking that one also.

    --
    Your life is like a penny. You're going to lose it. The question is:
    How do
    you spend it?

    John Covici wb2una
    covici@ccs.covici.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to John Covici on Tue Aug 24 09:40:01 2021
    On Tue, 24 Aug 2021 02:57:04 -0400, John Covici wrote:

    OK, I will check that out, thanks. It looks like that complete gentoo
    system mentioned in the forums is looking decent, except its quite
    large, I am checking that one also.

    You can also add additional modules to sysrescd, so it may be easier to
    stick with that and add ZFS to it.

    Looking at https://www.system-rescue.org/Modules/ it looks like you just install them after booting the live USB then run cowpacman2srm to put everything you installed onto a file that you add to the USB stick. See
    the section titled "Creating SRM modules out of pacman packages".


    --
    Neil Bothwick

    Assassins do it from behind.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmEkoKwACgkQ92eFu0QS MJgLyBAAhSI8VjHcWelUYmh2ooJHJbFhyfmZDMwVpgSuPboW0uSSocCTt01WaWo8 6hheLSJejODPjnEb7MpdvEz4W6oqxjTtmPymi8sZeQHAh1cLKaWqch6+OfmcbR2Z lXTs87SfsZCwx07f24N2jDxQCQF/Y3gY6wcLrKKxlehjpo4/ngY1dhFdJ8ikYtFr OOJyTVfPHitnA/qc77cHtBFDO+eIEt4M+d39uG0z3Fh0KG3R54KRhejOyx+Qx9XH W5mWMf4N2wxtMxOSTWW0brQFIiCg/96yEbw8WW7f2YwfwkWvLhkjOPr8Zg1BXBrd lXfPi8cHimyHa6mJfCaLMHzcDttJGVSPzPBH1Z3233RuonfkuDDVKGMZRGiAweY+ vrva4Dpq7XgiJiGX/MQmKD9XZge/1M3eb1CCmNMEyRCJa2Dfn4vY8GYmaQ5jmV4N yVrl1Lf1KHjDIqTELOg7HK6okJSzL4UBr9+3v2VZS/JBrWGDelnTSne/wa0UUB+A XR9Jj8X3WHVsP/h8DaEd7IqGhoCh89LPEdkewXBtX4IPUN725MmQXyJJoRmLHicQ UFr/k9PdQFDZiMoZZeYGbNTxka5c52bqp7yVcX/bNYNvFhF21NL2zQzSmgPyD3Vo qtmxRSZWwct6jfMK+5fITyoRJarsUKOQhy1PqgOJ7PIhykVDoFs=
    =x4GB
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Robert David@21:1/5 to All on Tue Aug 31 13:20:02 2021
    Hi John,

    my approach is to have EFI partition with staticly compiled grub, alpine
    linux rescue system and kernel with tiny initramfs for zfs root.

    It works really well, only thing you need to consider is when upgrading
    root pool, you will not be able to boot to previous BE with old zfs.
    Without upgrading the pool, the transition is just easy as recompiling
    new kernel and upgrading the zfs userspace tools.

    For the alpine I use script to put a new version on /boot https://github.com/robertek/root-scripts/blob/master/alpine_recovery_update

    and having grub entry:

    menuentry "Alpine linux recovery" {
    linux /boot/vmlinuz-lts modules=loop,squashfs,sd-mod,nvme quiet nomodeset
    initrd /boot/initramfs-lts
    }

    The alpine extended version contains zfs modules, so you only need to
    "apk add zfs" and then modprobe zfs.

    The extended version is little bit bigger, but I'm fine to live with 1G efi partition.

    Robert.

    On Monday, August 23, 2021 10:15:10 AM CEST John Covici wrote:
    Hi. I have been using 5.4 lts kernels for a while, but it seems I
    need to change to 5.10 lts -- even Debian is now using 5.10, so it
    seems time to do this.

    Now, the problem is that I am using zfs and will not give it up, and
    the version I have been using 0.8.6 is no longer supported in 5.10
    versions of the kernel. So, I need a newer version of zfs and a
    rescue cd in case I get into trouble. Sysresc seems to no longer be compatible withgentoo linux, so what is available? I could use gentoo catalyst to make something -- I have done that in the past, but its
    quite a bit of work and I would prefer if there were something
    available I could use out of the box.

    Thanks in advance for any suggestions.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rich Freeman@21:1/5 to covici@ccs.covici.com on Tue Aug 31 16:10:01 2021
    On Tue, Aug 31, 2021 at 9:33 AM John Covici <covici@ccs.covici.com> wrote:

    Well, I never use a boot pool, I boot with ext4 and just do the root
    on zfs. But, I was more interested in some external media, so I am
    looking at that Linux Recovery file system to see if I can get that
    working, or if there is a way to add zfs to the sysresc cd, I might do
    that.


    Yeah, if I had to use a separate boot partition of any sort, I
    probably wouldn't make it zfs. There really isn't any benefit from
    using it for that.

    It might be FAT32 if I'm using EFI/etc, or it might be ext4.

    If I'm concerned about mirroring for something like that I could just
    rsync it once a day to zfs. We're talking about a tiny amount of data
    that doesn't change much, and if you use a week-old kernel after a
    restore it isn't the end of the world.

    What I probably should get around to is grokking EFI+linux. I'm not
    sure what the cleanest solution for that is these days - I've never
    actually set up EFI on linux, mostly because I'm not sure what the
    best practice is. I know at a high level that a few options exist. I
    want a final experience that is closer to grub2 than
    syslinux/lilo/etc, to use an analogy (not saying it should actually
    use grub).

    --
    Rich

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Covici@21:1/5 to Robert David on Tue Aug 31 15:40:02 2021
    On Tue, 31 Aug 2021 07:11:53 -0400,
    Robert David wrote:

    Hi John,

    my approach is to have EFI partition with staticly compiled grub, alpine linux rescue system and kernel with tiny initramfs for zfs root.

    It works really well, only thing you need to consider is when upgrading
    root pool, you will not be able to boot to previous BE with old zfs.
    Without upgrading the pool, the transition is just easy as recompiling
    new kernel and upgrading the zfs userspace tools.

    For the alpine I use script to put a new version on /boot https://github.com/robertek/root-scripts/blob/master/alpine_recovery_update

    and having grub entry:

    menuentry "Alpine linux recovery" {
    linux /boot/vmlinuz-lts modules=loop,squashfs,sd-mod,nvme quiet nomodeset
    initrd /boot/initramfs-lts
    }

    The alpine extended version contains zfs modules, so you only need to
    "apk add zfs" and then modprobe zfs.

    The extended version is little bit bigger, but I'm fine to live with 1G efi partition.

    Robert.

    On Monday, August 23, 2021 10:15:10 AM CEST John Covici wrote:
    Hi. I have been using 5.4 lts kernels for a while, but it seems I
    need to change to 5.10 lts -- even Debian is now using 5.10, so it
    seems time to do this.

    Now, the problem is that I am using zfs and will not give it up, and
    the version I have been using 0.8.6 is no longer supported in 5.10
    versions of the kernel. So, I need a newer version of zfs and a
    rescue cd in case I get into trouble. Sysresc seems to no longer be compatible withgentoo linux, so what is available? I could use gentoo catalyst to make something -- I have done that in the past, but its
    quite a bit of work and I would prefer if there were something
    available I could use out of the box.

    Thanks in advance for any suggestions.






    Well, I never use a boot pool, I boot with ext4 and just do the root
    on zfs. But, I was more interested in some external media, so I am
    looking at that Linux Recovery file system to see if I can get that
    working, or if there is a way to add zfs to the sysresc cd, I might do
    that.

    --
    Your life is like a penny. You're going to lose it. The question is:
    How do
    you spend it?

    John Covici wb2una
    covici@ccs.covici.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to John Covici on Tue Aug 31 17:10:03 2021
    On Tue, 31 Aug 2021 09:33:06 -0400, John Covici wrote:

    or if there is a way to add zfs to the sysresc cd, I might do
    that.

    There is, I posted a link last week.

    You can also add additional modules to sysrescd, so it may be easier to
    stick with that and add ZFS to it.

    Looking at https://www.system-rescue.org/Modules/ it looks like you just
    install them after booting the live USB then run cowpacman2srm to put
    everything you installed onto a file that you add to the USB stick. See
    the section titled "Creating SRM modules out of pacman packages".


    --
    Neil Bothwick

    Snacktrek, n.:
    The peculiar habit, when searching for a snack, of constantly
    returning to the refrigerator in hopes that something new will have
    materialized.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmEuRG4ACgkQ92eFu0QS MJiQOA//cgN8Gi63Q//kjWuNnaLeqW4VRqGmdOm0yEOuT6fKLH740+pRcWYVX7UO tF4QnmzqEZvS8ajMD/YBE5dr/J05+WfEoLv7LdEpbVSWejtEO6+pGuWp8nriQGdG ze2Jx3K0Bzv8zCFX2zUOFV+5IAqqui7f6xnwfPe+4W8iT5xXKo/56R80iTir1JS2 YF+7oW6CyB6RK4zkEgfIybCXc6lbZCaWSfp/BOvTJNhPufaxAm2huwnoUCMCKjER qzsVKOTcBd29ik5nB7oLLIpzAVeGTvFOcjxG+pjJ0WEVBz/jpSLmDykFBZpPUZ8D yBxeX5A/NoVkUu8VXGxU8ROh15SkkOD8xb58LbW2zYXxMcEe1IdhQ8nRLFtXkfyg fMFpCz7LrKXx8nL0/r0f5R/a5sBUlGAjkbAGj0D3tVfflfMagDfFa/S0/kCtLw6w VWP962ZALMw4Y4/x3znovbw+PsGDTDbgTrwhB968DZLA0C6JtThh7TXTzGXXgGX5 qfZwvJ4foVzyNOWGZqJad4OwBcs5ys5c6X1CrIP9n5YTo7PIJN8UcZW9mAwBGrZO znYJNyC97YzmEhkAfKGgkzmQ1ZMHmuGg5TJzLeqObZYa9Gk1a/r9qmCcE6xqZwlT GLl8PzdLddNgujy3RYNsaxEx003I3nweOUPoM6cX/mvyju9jpqg=
    =g9Mc
    -----END PGP S
  • From Matt Connell (Gmail)@21:1/5 to Rich Freeman on Tue Aug 31 16:40:02 2021
    On Tue, 2021-08-31 at 10:04 -0400, Rich Freeman wrote:
    What I probably should get around to is grokking EFI+linux.  I'm not
    sure what the cleanest solution for that is these days - I've never
    actually set up EFI on linux, mostly because I'm not sure what the
    best practice is.

    I can't speak to best practices, and I'm a long way from an expert on
    EFI, but the the instructions on the Gentoo handbook pages on disk
    partitioning + grub setup worked as expected for me.

    In a small nutshell, you have a small EFI+boot partition, set to type
    'EFI System' and formatted FAT32, then tell grub to use it as an EFI
    directory when calling grub-install.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Tue Aug 31 18:51:54 2021
    On Tuesday, 31 August 2021 15:33:07 BST Matt Connell (Gmail) wrote:
    On Tue, 2021-08-31 at 10:04 -0400, Rich Freeman wrote:
    What I probably should get around to is grokking EFI+linux. I'm not
    sure what the cleanest solution for that is these days - I've never actually set up EFI on linux, mostly because I'm not sure what the
    best practice is.

    I can't speak to best practices, and I'm a long way from an expert on
    EFI, but the the instructions on the Gentoo handbook pages on disk partitioning + grub setup worked as expected for me.

    In a small nutshell, you have a small EFI+boot partition, set to type
    'EFI System' and formatted FAT32, then tell grub to use it as an EFI directory when calling grub-install.

    In simple(r) systems where you only boot the same OS you can instead use the kernel's EFI stub to get the UEFI firmware to load the latest OS kernel directly from the ESP, without a 3rd party boot manager:

    https://wiki.gentoo.org/wiki/EFI_stub

    You'll use the efibootmgr to manage the kernel images stored on ESP, or your UEFI configuration menu if it has this functionality.

    https://wiki.gentoo.org/wiki/Efibootmgr


    If you are multibooting frequently and getting into the UEFI boot menu to change the boot order or running efibootmgr is too much hassle, then a 3rd party boot manager will be useful. Your choice of GRUB, rEFInd, systemd-boot, syslinux, EFI executable image will be installed and loaded/run by the UEFI firwmare from the ESP, with which in turn you will select and load your
    desired OS.

    https://wiki.gentoo.org/wiki/GRUB2

    http://www.rodsbooks.com/refind/

    https://wiki.gentoo.org/wiki/Systemd-boot

    https://wiki.syslinux.org/wiki/index.php?title=Install#UEFI
    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmEubDoACgkQseqq9sKV Zxl6Xw/+J1UqoeHRajBKSgSsBVJgNbCNE9lfPEZirrekgmi+wBPoPyaHvgL+ft6U 34ZpJ1FzqLVP3B8IiYrSQiKRNowda6Ro+LSrlfTFup4YZQXTAcqY1RfNjmCRr+H2 v8BQkx8Ge0MiJ/+BH5eheNixDD5DOTx3PeeUBr7LpFSv4baEiNSe4e10EaMTliMJ rvmUymLfYnCycIx2C/fkMkapKv4iwJfa9rLESyNNcjFTAHmhz8qNu87WDgo2PI/+ BZEuK3Mw4gEjKWxm1oNf4Od8JXUVqNcNxk2oS2HRVwoVo8Oa0xWXChUJX0LFXuVO Fu7QNunhV4PjlaYDifDA9w+56Ly+6EIi23NzdgB+fYO46nMpBMIC8D7z01HcsllF c4E2R91csydqRGprmerNRBLADgwd3+Txi4M36fMwoMvr4iwq8qo5Bofn5J7e5Qmi 6jKP4hDyT/FRDoid340myRe+8eKi2tVTDQjA4zEcMcHmhH0mkLC93QYA+K/IG+Kc iI/YchjJ0C6axb2EzvJfmMv2vFQIjd+kfaFKNObk/zsuDzJcQufktJF+YxoEkote vlHpZr61IyhDHfxKDr6ZcO4239QhSr4PaVsEZduPudVaH3UQobkRriX4ol8Jc/Wo KG5ZvlnYQLNCPhJVAapONHEqR7KPxg+o+BjDMhLbNKmSphLyM9o=
    =p1Qo
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rich Freeman@21:1/5 to confabulate@kintzios.com on Tue Aug 31 20:30:01 2021
    On Tue, Aug 31, 2021 at 1:51 PM Michael <confabulate@kintzios.com> wrote:


    In a small nutshell, you have a small EFI+boot partition, set to type
    'EFI System' and formatted FAT32, then tell grub to use it as an EFI directory when calling grub-install.

    In simple(r) systems where you only boot the same OS you can instead use the kernel's EFI stub to get the UEFI firmware to load the latest OS kernel directly from the ESP, without a 3rd party boot manager:

    https://wiki.gentoo.org/wiki/EFI_stub

    You'll use the efibootmgr to manage the kernel images stored on ESP, or your UEFI configuration menu if it has this functionality.

    https://wiki.gentoo.org/wiki/Efibootmgr


    If you are multibooting frequently and getting into the UEFI boot menu to change the boot order or running efibootmgr is too much hassle, then a 3rd party boot manager will be useful. Your choice of GRUB, rEFInd, systemd-boot,
    syslinux, EFI executable image will be installed and loaded/run by the UEFI firwmare from the ESP, with which in turn you will select and load your desired OS.


    So, which (if any) of these options supports either:

    1. An EFI partition plus /boot on zfs (with no limitations on pool
    config, ie it can be a root pool).
    2. An EFI partition that contains everything.

    If I want to use grub+EFI with a zfs root it sounds like I'd need TWO
    boot partitions - an EFI partition (FAT32), and a /boot partition
    (anything, but if ZFS it needs to have controlled features). That
    seems even more messy than what I'm doing now.

    --
    Rich

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Tue Aug 31 20:44:50 2021
    On Tuesday, 31 August 2021 20:21:58 BST Neil Bothwick wrote:
    On Tue, 31 Aug 2021 14:21:35 -0400, Rich Freeman wrote:
    If you are multibooting frequently and getting into the UEFI boot
    menu to change the boot order or running efibootmgr is too much
    hassle, then a 3rd party boot manager will be useful. Your choice of GRUB, rEFInd, systemd-boot, syslinux, EFI executable image will be installed and loaded/run by the UEFI firwmare from the ESP, with
    which in turn you will select and load your desired OS.

    So, which (if any) of these options supports either:

    1. An EFI partition plus /boot on zfs (with no limitations on pool
    config, ie it can be a root pool).
    2. An EFI partition that contains everything.

    If I want to use grub+EFI with a zfs root it sounds like I'd need TWO
    boot partitions - an EFI partition (FAT32), and a /boot partition (anything, but if ZFS it needs to have controlled features). That
    seems even more messy than what I'm doing now.

    systemd-boot and refind both support everything on EFI. I am pretty sure
    GRUB does too, but I have no reason to use GRUB with EFI. My setup on
    this box is /boot on FAT32 and / (and everything else) on btrfs. I've
    also used the same setup with ZFS.

    Any boot option on a UEFI MoBo requires an 'EFI System Partition' (ESP), formatted as VFAT. The UEFI firmware boot loader will list/load/run any *.efi software stored in the ESP compatible with the UEFI API, whether this is a
    boot loader, a kernel with an EFI stub, or some .efi diagnostic application.

    As long as your boot loader of choice, or kernel image and any initrd contains the requisite fs drivers, there will be no problem mounting and accessing whatever root fs needs to be accessed.

    GRUB contains a number of ZFS modules to do this job (zfscrypt.mod, zfsinfo.mod, zfs.mod) - not sure about the other boot managers.

    Typical GRUB installations have /boot/efi mounted on the ESP, with the grubx64.efi image on it, while the rest of the files, vmlinuz symlinks, etc. are on the root partition.

    Please beware, I have not used zfs to date, only btrfs, so the above merely reflects my understanding rather than in depth experience of the difficulty in managing such a setup.
    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmEuhrIACgkQseqq9sKV ZxnTNw//WtvbevVq/pxw6fgoLbNnsdykag535vHUba56njzjBKyhuGxrp9TDPQDM 65/cw3jJibxTW+hRBasWckeSflGRkbtgvKTJ4cBEzkxgCd98yncZxOx6qaJMXL7x ktCvUJBdmgg1j5Q3E7jqDPGA4vzeghU2RwXMWU/7jigfgDHIBMVmFOaIfOPBM5d8 6IZEvQtRZv3kUzNxrrv79HOtRDcxw87oYaTtaGEICAz+s1zUeuMqK5NTYLjbp46y bvxbmV6ah3r+5NxhGT6lqL4G+WHy1g/FLYXi+c4Qm40basIv5nVqw2f8Ruw6oucE oZgLP0+z6tTt3LsGJf4y9FMvfNqovDAGo6kfX5u3+r5j9x318sQvVQwoajbudJr6 x6gpTEjIaaiAiQAZODZdmY8of+nDsvadTnE60C0tHJKRxRrRxXXEglzuAz9drUoJ g17j2HDwtVedNQFTbYzZpOSiSGhjOE+VwLjOUVKdODysKQic8Pzn4FgrjX0gUV0n blKTRJ+4lzJz8W59OOvL8AMrGtLSGdBUv0qq5Hwcw1b71qoF8XXSw1USUU09dYiQ /SaM6K/F5MX7HMtxzJ2jNA2+wCgv4TLwjXgNXrPKsxEgJOutVgS05rMs6bp/S//v 7jVQGSSZ0FSenkw0K4lL4wZOTEKLWUUutcin4f2Z+4DXSwUIpq0=
    =oM90
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rich Freeman@21:1/5 to confabulate@kintzios.com on Tue Aug 31 22:00:01 2021
    On Tue, Aug 31, 2021 at 3:44 PM Michael <confabulate@kintzios.com> wrote:

    Please beware, I have not used zfs to date, only btrfs, so the above merely reflects my understanding rather than in depth experience of the difficulty in
    managing such a setup.

    To save you digging through the thread, the issue with zfs is that it
    adds new features over time, and grub isn't necessarily compatible
    with all of them. You can control which features are enabled on-disk
    for compatibility, but grub doesn't do a great job documenting which
    features are/aren't supported in any particular version. So, it is a
    bit of a guessing game.

    It has been pointed out that there are various guides online, but:

    1. They don't all say the exact same thing.
    2. They aren't official upstream docs.
    3. They rarely specify what version of grub they're talking about.

    The typical solution is to either use very conservative settings for
    your root partition (which isn't ideal from a zfs standpoint), or have
    a separate /boot pool which means that you don't have to encumber the
    rest of the system with whatever grub's limitations might be. Then
    you just never update that partition and it shouldn't break. That
    basically is no different than just having /boot on ext4 or vfat or
    whatever. With this solution you also can't just freely resize /boot
    the way you could if it were part of the pool.

    --
    Rich

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to Rich Freeman on Tue Aug 31 21:30:02 2021
    On Tue, 31 Aug 2021 14:21:35 -0400, Rich Freeman wrote:

    If you are multibooting frequently and getting into the UEFI boot
    menu to change the boot order or running efibootmgr is too much
    hassle, then a 3rd party boot manager will be useful. Your choice of
    GRUB, rEFInd, systemd-boot, syslinux, EFI executable image will be installed and loaded/run by the UEFI firwmare from the ESP, with
    which in turn you will select and load your desired OS.


    So, which (if any) of these options supports either:

    1. An EFI partition plus /boot on zfs (with no limitations on pool
    config, ie it can be a root pool).
    2. An EFI partition that contains everything.

    If I want to use grub+EFI with a zfs root it sounds like I'd need TWO
    boot partitions - an EFI partition (FAT32), and a /boot partition
    (anything, but if ZFS it needs to have controlled features). That
    seems even more messy than what I'm doing now.

    systemd-boot and refind both support everything on EFI. I am pretty sure
    GRUB does too, but I have no reason to use GRUB with EFI. My setup on
    this box is /boot on FAT32 and / (and everything else) on btrfs. I've
    also used the same setup with ZFS.


    --
    Neil Bothwick

    If a book about failures doesn't sell, is it a success?

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmEugVYACgkQ92eFu0QS MJgsixAAmHY++V1nvTU2oBmUs8IYg6nJ3CL2JWaomP6ZjzUTOhi9b0cP+U81CtNN k6yh+SGMskzT+T6E+VLIm3URPfcnHRPNWNncbOcfVLQZ82b30lcICWyptESk0GRH Tn7lJZFtVSMjTtubse3nMQIdo8QQkqP/HdEuIsDPh+OkzSauQaWPOEbrO+2jHxND e4YGjpcCUBiDj8Q2jFCGKfjM4NeagjyDkQcE5C6WTmCqdbOEZm2jAEPkXIYJCk/G T/CiLfhb48CNiqoQBK7j8FHybyIZk7nPfnc1eCFsByN+tT7s/9QE2rtrJTVQYVcB 0VnmRD4osGuq6UBRsnMfA1FqQTBxmPL9wUyAuyLTEkQot95//uMQEVGCYu31ZIuh 7hcmwZ+akKx/Z1zQUI4UMPkWV/cZNnx5rBqqCrKLgicF9emZ3j2KQP1L0aBXHSvH FbMETd7ptaEywoyUUdGS1hCzmhw+TgZXkVS4j6eucNs3/DSSFriPdJu/tO0pr/k0 LDoKnaymF0yPTPleJw3Qf5T6LFZU5x4ggmKXDzFTyVCV3VDJRYD0rMQwgyZ7gqTb IW56kNEGQ6bRZl/BSgwaAhRjLdOmoA6wv5acVO4DLiaxJs6a0f79FtuybN+nfWom 5wMEOivJ1MgpiiF0nqCNFy+FPmhY1sFSWjQPc92ar5kbIgQn3lU=
    =N8Tn
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jack@21:1/5 to Michael on Tue Aug 31 22:50:01 2021
    On 2021.08.31 16:20, Michael wrote:
    [snip....]
    Is there some particular need to resize boot? Is there even a need
    to have a pool for it? It seems to me having a stand alone simple
    VFAT partition for / boot which doubles up as ESP with a /boot/EFI subdirectory will do the job, although I understand not all use cases
    are as simplistic as what I envisage here.

    My only need to resize my boot/ESP partition was when I decided to
    increase the number of kernel/initrd combinations I wanted to keep
    around at one time, and ran out of space.

    Jack

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Tue Aug 31 21:20:16 2021
    On Tuesday, 31 August 2021 20:54:14 BST Rich Freeman wrote:
    On Tue, Aug 31, 2021 at 3:44 PM Michael <confabulate@kintzios.com> wrote:
    Please beware, I have not used zfs to date, only btrfs, so the above
    merely
    reflects my understanding rather than in depth experience of the
    difficulty in managing such a setup.

    To save you digging through the thread, the issue with zfs is that it
    adds new features over time, and grub isn't necessarily compatible
    with all of them. You can control which features are enabled on-disk
    for compatibility, but grub doesn't do a great job documenting which
    features are/aren't supported in any particular version. So, it is a
    bit of a guessing game.

    It has been pointed out that there are various guides online, but:

    1. They don't all say the exact same thing.
    2. They aren't official upstream docs.
    3. They rarely specify what version of grub they're talking about.

    The typical solution is to either use very conservative settings for
    your root partition (which isn't ideal from a zfs standpoint), or have
    a separate /boot pool which means that you don't have to encumber the
    rest of the system with whatever grub's limitations might be. Then
    you just never update that partition and it shouldn't break. That
    basically is no different than just having /boot on ext4 or vfat or
    whatever. With this solution you also can't just freely resize /boot
    the way you could if it were part of the pool.

    Yes, I understood this much, although I haven't red the various online guides you refer to above.

    Is there some particular need to resize boot? Is there even a need to have a pool for it? It seems to me having a stand alone simple VFAT partition for / boot which doubles up as ESP with a /boot/EFI subdirectory will do the job, although I understand not all use cases are as simplistic as what I envisage here.
    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmEujwAACgkQseqq9sKV ZxmUNhAAgC7zi33wEDoAwuN8Xgz2HlKUdgf6fFYjBh29+GI0LUuzxyjHl7co3lbD rBeq3KcHpjKKJ+bfLF0IAj1qzqhayNMakMtr3RkqC0NIaIWfFM5ciIcbLvusakYY EDlIOjUK7bW5HEqGk+NdZeytMeexIkt6WhEK40jU4YIKf7QoiFdzbzXm6CCeEzMG jIIzkxrkokbH15KsGGsz3r1R/p691ky6C+XDY5FBnYA4RAmKpSRStaURhA0cH6yB erF+rPUdh1Y5W+v9h7tYlI04OBcKc3/oZEefMODmQB6SPoqgtOuB9PTINLIrLf8d pA5LNR4XVFEfvKKwEntwv7ZTBEsyKChDvlRA4IoRMn9ZqV2hepBQvUKWCLYa5d+W zSeJTh4nKtwSY/DEYXrvmTnYr0AMRgoUv904Pp752OfiXfTG97lWwgZMro4z9Gq7 8Ujqa65icALtorfWVeR1g5qdfT1IANf7f/RCPphiqlZQGi5NPsSd9M6A1ob/euou SZhOYiloi3ZqPKEAtC9aHdXQ8Yaz+Gyjn+5HQFgfpyqADtQNW+aTPSDvSIxIxgVj TwI2SsuHcNnKdUjY1lkNOCfs6nJEszKMe/MwAlromajkckx7rt54ouX6rHSE+tBn Ra2imD/KxSehL4k0Q0jOViD6JZtkwXW5yruoxJNJBJNp3IWpNPU=
    =Jrr7
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to Michael on Tue Aug 31 23:10:02 2021
    On Tue, 31 Aug 2021 20:44:50 +0100, Michael wrote:

    systemd-boot and refind both support everything on EFI. I am pretty
    sure GRUB does too, but I have no reason to use GRUB with EFI. My
    setup on this box is /boot on FAT32 and / (and everything else) on
    btrfs. I've also used the same setup with ZFS.

    Any boot option on a UEFI MoBo requires an 'EFI System Partition'
    (ESP), formatted as VFAT. The UEFI firmware boot loader will
    list/load/run any *.efi software stored in the ESP compatible with the
    UEFI API, whether this is a boot loader, a kernel with an EFI stub, or
    some .efi diagnostic application.

    As long as your boot loader of choice, or kernel image and any initrd contains the requisite fs drivers, there will be no problem mounting
    and accessing whatever root fs needs to be accessed.

    GRUB contains a number of ZFS modules to do this job (zfscrypt.mod, zfsinfo.mod, zfs.mod) - not sure about the other boot managers.

    Typical GRUB installations have /boot/efi mounted on the ESP, with the grubx64.efi image on it, while the rest of the files, vmlinuz symlinks,
    etc. are on the root partition.

    Please beware, I have not used zfs to date, only btrfs, so the above
    merely reflects my understanding rather than in depth experience of the difficulty in managing such a setup.

    I find it simpler to make /boot a FAT partition, then /boot/efi is the
    ESP and all boot-related files are on the same filesystem. Like you, I
    have only used this with btrfs (and ext4 on LVM). I do use ZFS but that
    system is not EFI.


    --
    Neil Bothwick

    Theory is when you know everything, but nothing works.
    Reality is when everything works, but you don't know why.
    However, usually theory and reality are mixed together :
    Nothing works, and nobody knows why not.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmEumosACgkQ92eFu0QS MJg6VhAAhE48DKgkaAsXP93WLe7QxJ1qxr9Lju41U5yHi+OUVqJyNcgJM/MB8KaA VvcxV+plv4IyuFwT1t2OtKe8ZElY/F3z4cxKQr7ftnKnT5yGolBw8O78fUC4KmSu 5ChXtzmaSUkm3v5InekLgQxNlwDpgNbZUP6TpbcEKlN3b30/jcdJhunD5G33ystv unVSjyX0k3wXbxbarFoMOQrCnhdLhAPTHqtmbJrww5phqsKZVuZzLY/z0O+dlQ/M oOz8qPWpfNrst6MiaT9O37ovaozqxP3RS81xyTKvrNrDqJybJFIV3DdM/w4kjRda p4H6Df0sDBNhLyeIczRJpWNbQ2O+QDQGE9iv3LM+p8lV73rH24QxYtMK57OqRKHd I9IjsdbLl7cSCOqgw+6//926V5sliVQ66VzTAtZS4hvVFnno9DTnHoA+l0x9/Xry qljbOQDpdycN/66SwyTY8dM+uXFYNhWc3Jfi0gXrZsrxehieZGB+vbkI7UCCkwME +s5BlSwfSHKAvsAqP4LQEDUzLhbOuEq/uF44l6bBCa19Nt3Iog4hNt/eEt+UfFzv ASfShczyHbAcqUqYP3MjuCOFIOAgGtQX8dAVWlTKgaYOrW4N9UTZrsIi0A63Z6py vacdkyI44gu9C8OX8xDBFl/NBL