You are not logged in.

#1 2020-04-02 07:50:04

JoeAnto
Member
Registered: 2020-04-02
Posts: 14

[SOLVED] rEFInd LTS Kernel Panic

Hey All,

i recently installed rEFInd and decided to use it instead of grub,  but some very weird thing is happening.

Using grub:
• lts kernel boots correctly
• mainstream kernel boots correctly

Using rEFInd:
• lts kernel does not boot and gives a kernel panic (See kernel error message below)
• mainstream kernel boots correctly.

Kernel Error Message:

Warning: /lib/modules/5.4.28-2-lts/modules.devname not found - ignoring
ERROR: device 'UUID=.....' not found. skipping fsck.
mount: /new_root: can't find UUID=................
........

Kernel Versions:
• Mainstream: 5.5.13
• LTS: 5.4.28-2-lts

Intel micro code is installed, everything is up to date.
I find it very weird that rEFInd cannot find the root partition only with the lts kernel, while mainstream kernel works perfectly, and lts works fine with grub.

As far as i understand it, rEFInd uses a single /boot/refind_linux.conf file for all installed kernels.

Edit: Config Files
here is my /boot/refind_linux.conf as well as /efi/EFI/refind/refind.conf

Solution

all it took was to un-comment the line

extra_kernel_version_strings linux-lts,linux

in my refind.conf et voila! it works flawlessly.

Last edited by JoeAnto (2020-04-02 13:43:54)

Offline

#2 2020-04-02 08:16:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED] rEFInd LTS Kernel Panic

Double check your config that the UUID is correct. Did you see: https://wiki.archlinux.org/index.php/RE … _by_rEFInd ?

Offline

#3 2020-04-02 08:24:45

JoeAnto
Member
Registered: 2020-04-02
Posts: 14

Re: [SOLVED] rEFInd LTS Kernel Panic

V1del wrote:

Double check your config that the UUID is correct. Did you see: https://wiki.archlinux.org/index.php/RE … _by_rEFInd ?

yes, i checked the archwiki before posting, that's why i find it weird, because the refind_linux.conf is used for both kernels, and i made sure that the UUID is correct, and as i already have labels assigned to all partitions in the filesystem, i tried assigning lables instead of UUIDs, same problems occur.

i think if it was a wrong disk identifier, it wouldn't boot in either lts or mainstream, because it is a single configuration file that is used in both after all.

EDIT: I forgot to state that this problem occurs on both my desktop and laptop, this is why i suspect that it is a problem with rEFInd configuration that i somehow missed. but again, config files are used for both kernels, why is it that one boots and the other doesn't is beyond me.

Last edited by JoeAnto (2020-04-02 08:28:18)

Offline

#4 2020-04-02 12:21:17

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [SOLVED] rEFInd LTS Kernel Panic

You're loading the wrong initramfs

Offline

#5 2020-04-02 12:24:58

JoeAnto
Member
Registered: 2020-04-02
Posts: 14

Re: [SOLVED] rEFInd LTS Kernel Panic

Scimmia wrote:

You're loading the wrong initramfs

Any idea how i go about troubleshooting or correcting that?

Offline

#6 2020-04-02 12:31:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [SOLVED] rEFInd LTS Kernel Panic

Usually by fixing your bootloader config

Offline

#7 2020-04-02 13:09:33

JoeAnto
Member
Registered: 2020-04-02
Posts: 14

Re: [SOLVED] rEFInd LTS Kernel Panic

Scimmia wrote:

Usually by fixing your bootloader config

Well, nothing is immediately obvious to me in the configs, and as i stated before, the configs are used for all kernel versions, and are not kernel specific as far as i know, unless i specify specific parameters in the refind.conf file, which i am not.

rEFInd then auto detects everything from alternate kernels to windows bootloaders.

if you have any pointers, please feel free to share, your help is always appreciated.

here is my /boot/refind_linux.conf as well as /efi/EFI/refind/refind.conf

Note: The theme file is irrelevant as the issue persists even when it's disabled.

Offline

#8 2020-04-02 13:12:50

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [SOLVED] rEFInd LTS Kernel Panic

bootloader autodetection sucks. Write out an actual config

Offline

#9 2020-04-02 13:16:21

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED] rEFInd LTS Kernel Panic

You lack the initrd definition in the refind_linux.conf and your

#extra_kernel_version_strings linux-lts,linux

line is commented and not enabled.

Offline

#10 2020-04-02 13:32:02

JoeAnto
Member
Registered: 2020-04-02
Posts: 14

Re: [SOLVED] rEFInd LTS Kernel Panic

V1del wrote:

You lack the initrd definition in the refind_linux.conf and your

#extra_kernel_version_strings linux-lts,linux

line is commented and not enabled.

You're a real life saver, all it took was to un-comment the line

extra_kernel_version_strings linux-lts,linux

in my refind.conf et voila! it works flawlessly. I didn't even need to define my initrd in refind_linux.conf

Scimmia wrote:

bootloader autodetection sucks. Write out an actual config

Thank you for your help, much appreciated, it turned out to be something much simpler.

Offline

#11 2020-04-02 13:33:52

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] rEFInd LTS Kernel Panic

Please remember to mark your thread [SOLVED] (edit the title of your first post).


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#12 2020-04-02 13:36:33

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [SOLVED] rEFInd LTS Kernel Panic

Not simpler at all. Instead of making a simple config that makes it so you know exactly what it's doing, you have these kind of surprises popping up.

Last edited by Scimmia (2020-04-02 13:36:45)

Offline

#13 2020-04-02 13:51:32

JoeAnto
Member
Registered: 2020-04-02
Posts: 14

Re: [SOLVED] rEFInd LTS Kernel Panic

2ManyDogs wrote:

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Done, edited the original post to include the solution too.

Scimmia wrote:

Not simpler at all. Instead of making a simple config that makes it so you know exactly what it's doing, you have these kind of surprises popping up.

well, compared to grub/grub2 that i have been using for 6+ years now, rEFInd is much much simpler. And i was actually surprised by the amount of quality auto detection the software can do, with simple configuration files that can be edited on the fly without the need to run grub-configure to regenerate configs any time you want to change something, i find it actually very robust as a boot loader.
The only draw back i can think of right now is that i never got it to boot from legacy mbr sources, though it advertises itself as having this ability, and detects the mbr windows drive correctly, but shows a blinking cursor upon trying to boot.

but that's a story for another day, as i already converted my windows drive to UEFI for consistency. Haven't used windows much in the last 2 or so years anyway.

Offline

Board footer

Powered by FluxBB