[Bug 263407] RC3 Guided ZFS on root with encryption unmountable

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 20 Apr 2022 21:13:00 UTC

--- Comment #7 from Martin Matuska <mm@FreeBSD.org> ---
I have started debugging and here is my finding:

There are no errors with 13.1-BETA3. But this doesn't mean it is "fine".

When doing a 13.1-RC3 install with ZFS+GELI, the loader fails to load
/boot/kernel/geom_eli.ko with the following error message:
elf64_obj_loadimage: read section headers failed

That way geom_eli.ko is not loaded and ZFS is of course unable to find the
"zroot" pool when trying to mount root, because the geli device does not exist.

The file has the correct checksum. But the loader can't cope with it - unknown
reason. You can load other modules.

I have found this workaround:
When you exit to shell after running the automated installer (before doing
reboot) and do the following:

cp /boot/kernel/geom_eli.ko /tmp
rm /boot/kernel/geom_eli.ko
cp /tmp/geom_eli.ko /boot/kernel/geom_eli.ko

And then reboot, the system boots fine.
Is this a problem in the ZFS support of our loader (not being able to read a
specific file out of ZFS) or elsewhere?

In BETA3, the geom_eli.ko might be just located on a different position on the
root pool and that why it is being read correctly by the loader.

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