You are not logged in.

#1 2024-06-09 17:49:30

fyredragon
Member
Registered: 2022-12-07
Posts: 9

ZFS issues while booting with a custom kernel [solved]

Good afternoon all, I am currently experiencing some issues with my Arch Linux install yet again, specifically with a custom kernel and ZFS. Some context is needed as to why I'm using a custom kernel. I currently use a Dell Latitude 5420 laptop that experiences ethernet NIC issues only under Linux distros. I have booted Windows 10 once on this machine and the NIC worked flawlessly there. I have determined it has to do with NVM checksum issues, and requires this fix to make the NIC operational: https://gist.github.com/pca006132/a3291 … 9906c50f0e
I know this fix works, as I have used it in NixOS and the NIC began to work. I started by preparing build the custom kernel by following this Arch guide: https://wiki.archlinux.org/title/Kernel … ompilation and modifying the files needed. Everything went smoothly until it came to generating the initramfs. Initially, I had zfs-dkms installed, and it would not generate a proper initramfs for the custom kernel, as it would hang at the zfs hook on startup. I then uninstalled zfs-dkms and instead installed zfs-linux-lts which got me further, but still experiencing issues. Upon boot, I am now met with:

:: running early hook [udev]
Starting systemd-udevd version 255.7-1-arch
:: running hook [udev]
:: Triggering uevents...
:: running hook [keymap]
:: Loading keymap...done.
:: running hook [zfs]
spl: version magic '6.6.32-1-lts SMP preempt mod_unload ' should be '6.6.32 SMP preempt mod_unload'
Failed to initialize the libzfs library.

and keeps printing the last two lines until it kernel panics. Am I missing something obvious here? Should I be compiling my own kernel?

Last edited by fyredragon (2024-06-10 12:53:13)

Offline

#2 2024-06-09 18:03:32

fmc000
Member
Registered: 2020-05-12
Posts: 85

Re: ZFS issues while booting with a custom kernel [solved]

It looks like you're trying to use the pre-built module for linux-lts with a custom-compiled (by you, I suppose) kernel - this cannot work. zfs-linux-lts will work only with linux-lts. If you want to compile your own kernel you should download the zfs tarball from https://github.com/openzfs/zfs/releases/tag/zfs-2.2.4 and compile the module (you can also include it directly into the kernel if you want).

Last edited by fmc000 (2024-06-09 18:04:06)


Linux user since 1996. Currently running Arch on an I7 11th gen laptop with root on zfs with zrepl.

Offline

#3 2024-06-09 18:29:09

fyredragon
Member
Registered: 2022-12-07
Posts: 9

Re: ZFS issues while booting with a custom kernel [solved]

fmc000 wrote:

It looks like you're trying to use the pre-built module for linux-lts with a custom-compiled (by you, I suppose) kernel - this cannot work. zfs-linux-lts will work only with linux-lts. If you want to compile your own kernel you should download the zfs tarball from https://github.com/openzfs/zfs/releases/tag/zfs-2.2.4 and compile the module (you can also include it directly into the kernel if you want).

I see, I will try compiling the module and seeing what happens. Thank you for the quick response.

Offline

#4 2024-06-10 12:52:52

fyredragon
Member
Registered: 2022-12-07
Posts: 9

Re: ZFS issues while booting with a custom kernel [solved]

fyredragon wrote:
fmc000 wrote:

It looks like you're trying to use the pre-built module for linux-lts with a custom-compiled (by you, I suppose) kernel - this cannot work. zfs-linux-lts will work only with linux-lts. If you want to compile your own kernel you should download the zfs tarball from https://github.com/openzfs/zfs/releases/tag/zfs-2.2.4 and compile the module (you can also include it directly into the kernel if you want).

I see, I will try compiling the module and seeing what happens. Thank you for the quick response.

I apologize for the delay in response, but I tried this last night and it worked. Thank you for the help, fmc000.

Offline

#5 2024-06-10 13:55:30

fmc000
Member
Registered: 2020-05-12
Posts: 85

Re: ZFS issues while booting with a custom kernel [solved]

My pleasure.


Linux user since 1996. Currently running Arch on an I7 11th gen laptop with root on zfs with zrepl.

Offline

Board footer

Powered by FluxBB