Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jun 2020 15:44:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 247482] loader: geli-encryption zfs boot environments [regression]
Message-ID:  <bug-247482-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247482

            Bug ID: 247482
           Summary: loader: geli-encryption zfs boot environments
                    [regression]
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: contact@evilham.com

Hello,

I just had some time to track this down. The loader has been wrong on CURRE=
NT
with my setup for a couple days, particularly since this was merged:
https://reviews.freebsd.org/D25324
(If I revert the mentioned diff, HEAD's loader works just fine)


Judging by the messages I see when booting, the boot loader tries the disk
partitions one by one as expected, finds the one with the OS and tries the
active Boot Environment.
And then it bails out in this bit of code from vdev_clear_pad2(vdev_t *vdev=
):


+       if (vdev_write(vdev, vdev->v_read_priv, off, be, VDEV_PAD_SIZE)) {
+               printf("failed to clear be area of primary vdev: %d\n",
+                   errno);
+       }


The errno given for the right boot environment is 45, which appears to be
EOPNOTSUPP.

This is the message I'm seeing (modulo typos, transcript):

Setting currdev to zfs:zroot/ROOT/13-current:
failed to clear be area of primary vdev: 45
zfs nextboot: zfs:zroot/ROOT/12-release:
ERROR: cannot open /boot/lua/loader.lua: no such file or directory.


The setup is pretty simple, full disk geli-encrypted system created from the
installer with zfs on root with Boot Environments.


I'd try to fix this but ATM I don't feel too comfortable touching things th=
at
appear to write to the disk :-D; can I help provide more information to fix
this?

Thank you,

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-247482-227>