Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] rebuilt kernel and can no longer boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 502

PostPosted: Fri Jan 24, 2025 7:07 pm    Post subject: [SOLVED] rebuilt kernel and can no longer boot Reply with quote

I reinstalled gentoo-kernel with the hopes that if I made any changes to the configuration, they would be reverted and I would have sound again. After copying the kernel, init, and other files to the EFI partition, I can no longer boot. I'm using efibootmgr to manage boot entries and just booting the kernel directly since I had issues with GRUB.

My root filesystem is ZFS on LUKS. I left the dracut configuration intact and as far as I know, the zfs and luks support should be built in. When booting, the init does prompt me to unlock the root partition, but it fails to mount the root partition which is ZFS. It appears that ZFS support is not working.

Any ideas?


Last edited by o5gmmob8 on Sat Jan 25, 2025 8:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 530

PostPosted: Sat Jan 25, 2025 9:14 am    Post subject: Reply with quote

Without any information it is really hard to help you.

Please show at least the output of "efibootmgr" and the files on your ESP. You can retrieve this information from any live-system (no need to chroot).
Back to top
View user's profile Send private message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 502

PostPosted: Sat Jan 25, 2025 10:45 am    Post subject: Reply with quote

Code:
BootCurrent: 0004
Timeout: 2 seconds
BootOrder: 0000,0003,0004
Boot0000* Gentoo consoleblank   HD(1,GPT,5a771bf6-cd02-432a-9a22-9252bd3d98af,0x800,0x200000)/\EFI\gentoo\kernelroot=zfs:z_512.0/gentoo/ROOT rd.luks.UUID=01ebe0db-0220-46e0-a6ac-c8788bcf9e48 consoleblank=300 quiet initrd=\EFI\gentoo\initramfs
Boot0001* Gentoo  - 6.6.67-gentoo-dist-hardened   HD(1,GPT,4e5ae193-5adb-4a4c-919c-c7d9c91c83e0,0x800,0x200000)/\EFI\gentoo\6.6.67-gentoo-dist-hardened\kernelconsoleblank=300 quiet rd.luks.UUID=8619d163-0b71-4ed8-ad93-27b14c18419f root=zfs:z_500.1/gentoo initrd=\EFI\gentoo\6.6.67-gentoo-dist-hardened\initramfs
Boot0003* Gentoo - internal   HD(1,GPT,5a771bf6-cd02-432a-9a22-9252bd3d98af,0x800,0x200000)/\EFI\gentoo\kernelroot=zfs:z_512.0/gentoo/ROOT rd.luks.UUID=01ebe0db-0220-46e0-a6ac-c8788bcf9e48 initrd=\EFI\gentoo\initramfs
Boot0004* UEFI: SanDisk Cruzer 1100, Partition 2   PciRoot(0x0)/Pci(0x14,0x0)/USB(0,0)/HD(2,GPT,0b772250-3283-424c-ba96-7efd9f762822,0x234,0x1680)



I put the kernel and initramfs in /EFI/gentoo on my EFI partition. As I understand, efibootmgr doesn't necessarily need those files to be there when efibootmgr is run, but at boot time, they need to be there. I merely moved the old and new init and kernel files around, but now as a result of that and rebuilding the kernel, it isn't mounting my root ZFS volume, so it looks like there is no ZFS support. I believe the initramfs still has ZFS support in it though. When it fails to boot and I'm in the emergency shell, I am unable to load any module, so I suspect my modules under /lib/modules are messed up from my recompile. I removed /usr/src/linux* and re-emerged gentoo-kernel which as I understand takes care of rebuilding the kernel and modules and init.
Back to top
View user's profile Send private message
Nowa
Developer
Developer


Joined: 25 Jun 2014
Posts: 471
Location: Nijmegen

PostPosted: Sat Jan 25, 2025 7:56 pm    Post subject: Reply with quote

Please share the output of "emerge --config gentoo-kernel"
_________________
OS: Gentoo 6.10.12-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400
Back to top
View user's profile Send private message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 502

PostPosted: Sat Jan 25, 2025 8:26 pm    Post subject: Reply with quote

Thanks - if you hadn't mentioned about --config, I wouldn't have run it again and combed through the output.

I figured it out, I had to re-emerge zfs-kmod. Arg, I think I did one too many rm -rf. I'm already about ready to to rm -rf / :).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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