View previous topic :: View next topic |
Author |
Message |
o5gmmob8 Guru
Joined: 17 Oct 2003 Posts: 502
|
Posted: Fri Jan 24, 2025 7:07 pm Post subject: [SOLVED] rebuilt kernel and can no longer boot |
|
|
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 |
|
|
sMueggli Guru
Joined: 03 Sep 2022 Posts: 530
|
Posted: Sat Jan 25, 2025 9:14 am Post subject: |
|
|
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 |
|
|
o5gmmob8 Guru
Joined: 17 Oct 2003 Posts: 502
|
Posted: Sat Jan 25, 2025 10:45 am Post subject: |
|
|
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 |
|
|
Nowa Developer
Joined: 25 Jun 2014 Posts: 471 Location: Nijmegen
|
Posted: Sat Jan 25, 2025 7:56 pm Post subject: |
|
|
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 |
|
|
o5gmmob8 Guru
Joined: 17 Oct 2003 Posts: 502
|
Posted: Sat Jan 25, 2025 8:26 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|