Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
5.8.5 & genkernel all don't boot (SOLVED)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cryptosidus
n00b
n00b


Joined: 18 Aug 2020
Posts: 32

PostPosted: Fri Aug 28, 2020 9:22 am    Post subject: 5.8.5 & genkernel all don't boot (SOLVED) Reply with quote

Hi.

I saw an update from gentoo-sources 5.8.5 package and ran:

Code:

genkernel --lvm --luks all

Code:

grub-mkconfig -o /boot/grub/grub.cfg


grub-mkconfig printed 5.8.5, 5.8.4, and 5.8.3. Rebooted and booted into 5.8.5. No errors in booting, but I noticed 5.8.5 didn't load kernel modules before asking password to mount LUKS-LVM root partition. My other older 5.8.x always load kernel modules before asking password.

I entered my password and it mounted and it cannot find the root. it asked me to enter root path (/dev/mapper/v0-root) or enter shell or quit.

I had to enter shell and ran to reboot:
Code:

reboot -f

selected 5.8.4 in grub to boot.

My other 5.8.4 and 5.8.3 kernels were compiled and installed with the same commands: genkernel --luks --lvm all && grub-mkconfig -o /boot/grub/grub.cfg

Diff
Code:

diff /boot/config-5.8.5-gentoo-x86_64 /boot/config-5.8.4-gentoo-x86_64

< # Linux/x86 5.8.5-gentoo Kernel Configuration


both configs are identical except the version. So 5.8.4 and older kernels worked fine with genkernel.

My /etc/default/grub is the same for 5.8.4 and other 5.8.3 and never been modified for 5.8.5

Genkernel version 4.1.1
Profile: stage3 systemd


Last edited by cryptosidus on Sat Aug 29, 2020 12:34 am; edited 1 time in total
Back to top
View user's profile Send private message
TurgidWhale
n00b
n00b


Joined: 28 Aug 2020
Posts: 1

PostPosted: Fri Aug 28, 2020 2:37 pm    Post subject: Reply with quote

Hello,

I have a similar setup as you (luks+lvm, 5.4.60 gentoo sources kernel), and was running into a similar problem where modules weren't getting loaded. While my system did boot after a long search for root, a lot of my hardware did not work without an rmmod and modprobe of the relevant kernel module. For me, genkernel was updated since I last updated my kernel, and the newer version seems to be buggy. Masking
Code:
sys-kernel/genkernel-4.1.0-r2
and then running
Code:
emerge --ask --update sys-kernel/genkernel
and regenerating my initramfs seemed to do the trick.

Hope that helps.
Back to top
View user's profile Send private message
cryptosidus
n00b
n00b


Joined: 18 Aug 2020
Posts: 32

PostPosted: Fri Aug 28, 2020 3:24 pm    Post subject: Reply with quote

I can confirm that too.

Downgraded to genkernel 4.1.0-rc2. Re-compiled 5.8.5 and booted into 5.8.5 flawlessly. It seems newer genkernel version is buggy.

Thank you!
Back to top
View user's profile Send private message
Whissi
Retired Dev
Retired Dev


Joined: 12 Jan 2011
Posts: 222

PostPosted: Fri Aug 28, 2020 4:27 pm    Post subject: Reply with quote

What was the exact error? That root couldn't be found? Do you set rootfstype on kernel command-line? Like you noticed, genkernel-4.1.1 disabled dumb module loading and is now requiring udev to do that job (old dumb loading can be re-enabled by setting "gk.hw.use-modules_load=yes" on kernel command-line). There is currently a known problem when filesystem is not built into kernel and rootfstype isn't set on kernel command-line. In that case, "mount" will use "-t auto" which will not trigger module loading. A fix is pending which will add filesystem detection to trigger module loading...
_________________
Regards,
Whissi
Back to top
View user's profile Send private message
cryptosidus
n00b
n00b


Joined: 18 Aug 2020
Posts: 32

PostPosted: Fri Aug 28, 2020 4:34 pm    Post subject: Reply with quote

It didn't find the root.

I have this in my /etc/default/grub

Code:

GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd dolvm crypt_root=UUID=<my root partition's UUID> root=/dev/mapper/v0-root"
Back to top
View user's profile Send private message
Whissi
Retired Dev
Retired Dev


Joined: 12 Jan 2011
Posts: 222

PostPosted: Fri Aug 28, 2020 4:38 pm    Post subject: Reply with quote

And can you please check if used root filesystem is built as module?
_________________
Regards,
Whissi
Back to top
View user's profile Send private message
cryptosidus
n00b
n00b


Joined: 18 Aug 2020
Posts: 32

PostPosted: Fri Aug 28, 2020 5:19 pm    Post subject: Reply with quote

Yes it is.


If you wondered what I did:

kernel 5.8.5 was already compiled with genkernel --luks --lvm all

gentoo-sources 5.8.5 + genkernel 4.1.1
Code:

genkernel --luks --lvm initramfs
grub-mkconfig -o /boot/grub/grub.cfg

rebooted, booted 5.8.5, and it didn't find the root. I rebooted again to manually boot 5.8.4 from grub. reinstalled genkernel 4.1.0-rc

gentoo-sources 5.8.5 + genkernel 4.1.0-rc2
Code:

genkernel --luks --lvm initramfs
grub-mkconfig -o /boot/grub/grub.cfg

rebooted, booted 5.8.5, and logged in without any issue.
Back to top
View user's profile Send private message
Whissi
Retired Dev
Retired Dev


Joined: 12 Jan 2011
Posts: 222

PostPosted: Fri Aug 28, 2020 10:27 pm    Post subject: Reply with quote

OK, thank you for confirming.

The mentioned fix is now released and part of genkernel-4.1.2!
_________________
Regards,
Whissi
Back to top
View user's profile Send private message
cryptosidus
n00b
n00b


Joined: 18 Aug 2020
Posts: 32

PostPosted: Sat Aug 29, 2020 12:34 am    Post subject: Reply with quote

Whissi,

Awesome! Yes, just booted 5.8.5 + genkernel 4.1.2 without any issue. Thank you! :)

Updated the subject.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum