Bug 237653 - LUA loader cannot choose ZFS pool to boot
Summary: LUA loader cannot choose ZFS pool to boot
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.2-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: loader, needs-qa
Depends on:
Blocks:
 
Reported: 2019-04-29 19:08 UTC by Vladyslav V. Prodan
Modified: 2024-05-06 00:01 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladyslav V. Prodan 2019-04-29 19:08:03 UTC
# uname -a
FreeBSD core.domain.com 12.0-STABLE FreeBSD 12.0-STABLE r346874 SUPPORT-12-0-1  amd64

There are several (boot) ZFS pools in the system. 

Attempting to choose a non-default first ZFS pool led to this result.

https://webm.red/iyPG

Similar behavior on FreeBSD 12.0-RC3
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2021-02-09 01:47:12 UTC
Is 12.2-RELEASE-p3 any better?
Comment 2 Vladyslav V. Prodan 2021-02-12 19:46:12 UTC
(In reply to Graham Perrin from comment #1)
No.
# uname -a
FreeBSD vb-12.2.0.domain.com 12.2-STABLE FreeBSD 12.2-STABLE r369250 GENERIC  amd64

Item 6 from the menu is completely inoperative.
Only reboot helps.
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2023-04-09 10:10:25 UTC
(In reply to Vladislav V. Prodan from comment #0)

> https://webm.red/iyPG

I see (transcribed): 

----

Startup error in /boot/lua/loader.lua:
LUA ERROR: /boot/lua/drawer.lua:270: attempt to index a nil value (local ’logodef’). 

can’t load ’kernel’

Type ’?’ for a list of commands, ’help’ for more detailed help.
OK
Comment 4 Warner Losh freebsd_committer freebsd_triage 2024-01-17 23:38:16 UTC
I've been switching between zpools and BEs on my 14.x and 15.x based boxes.

Is this bug still relevant in 13 or newer?
Comment 5 Vladyslav V. Prodan 2024-01-18 23:26:04 UTC
There is no way to repeat it yet.
You need to have two copies of the kernel...

"can’t load ’kernel’"

This error is reproduced after exiting the 6th or 7th menu item.
13.2-STABLE 2cd20d9bc SUPPORT-13-2-0
Comment 6 Warner Losh freebsd_committer freebsd_triage 2024-01-19 00:18:15 UTC
(In reply to Vladyslav V. Prodan from comment #5)

Thanks for the details, but I'm afraid that I'm still not sure how to recreate this problem. Do you have a step by step of what you are doing, and what's then failing? I have only a vague idea, and vague notion doesn't match my experience of doing what I think you are doing all the time...  so having the exact details will help me track down what's going wrong for you...
Comment 7 Vladyslav V. Prodan 2024-05-06 00:01:39 UTC
FreeBSD 14.1-PRERELEASE #0 stable/14-n267586-19e335596658: Thu May  2 20:41:56 UTC 2024

doesn't have this problem.