Hello,
I’m a ZFS beginner. I installed my Ubuntu 24.04 desktop using the ZFSBootMenu instructions at Ubuntu (UEFI) — ZFSBootMenu 3.0.1 documentation with encryption. I used the prebuild EFI executable and installed it directly with efibootmgr. One quirk was that I had to place zbm at boot/bootx64.efi or I got nowhere. Aside from that, everything was fine with Linux.
When I rebooted most recently, the boot process did not complete. I was able to enter the encryption password and got these log messages:
Tearing down USB controller 0000:02:00.0...
Tearing down USB controller 0000:2d:00.3...
Booting /boot/vmlinuz-6.8.0-85-generic for zroot/ROOT/ubuntu ...
But nothing happened after that, despite leaving it for an hour or more. There is an older kernel 6.8.0-83-generic which also does not work.
Separately to that, I entered the ZBM menu and was able to use the chroot of my system successfully. Inside the chroot I mounted /boot/efi to check it looked ok. After doing that and exiting the chroot I got the message
No boot environments with kernels found
Dropping to an emergency shell to allow recovery attempts
And it drops to the emergency shell. If I don’t mount /boot/efi it exits the chroot happily. I’m guessing that’s a quirk of what the chroot is doing, but wanted to include it anyway.
I suspect the root cause of the problem is related to installing refind (for dual booting Windows on a separate disk) but not configuring it immediately, then forgetting about it, combined with using sleep the majority of the time rather than shutdown. If you’d like to point out the wisdom of taking snapshots before important changes, right here is probably the best time to do that.
I subsequently followed the ZBM instructions for getting refind working, but with no luck. I got the pretty refind menu and could choose Windows or vmlinuz-backup.efi (no bootx64.efi). Windows worked, vmlinuz-backup.efi gave the same results as with direct zbm. I’ve now uninstalled refind to remove that confounding factor.
Is there any way to debug what is happening? I’ve tried removing the quiet kernel boot option and setting log level to 7, to no effect.
Cheers,
Roger