Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7742

Raspberry Pi OS • Re: Debian 13.5 breaks LVM (MVMe) mount/boot

$
0
0
I had a similar sounding problem booting with a LVM root partition after updating to 6.12.75 -> 6.18.29 on Trixie 13.5

In my case I chased it down to a broken initramfs image. Specifically it was missing /lib/aarch64-linux-gnu/liblzma.so.5 which prevented modprobe from decompressing dm-mod.ko.xz and thus no LVM root partition.

I dropped the following into /usr/share/initramfs-tools/hooks/kmod-fix to work around the issue for now. (make sure it's executable)

Code:

#!/bin/shcase $1 inprereqs)echoexit 0;;esac. /usr/share/initramfs-tools/hook-functionscopy_exec /usr/lib/*-linux-gnu/liblzma.so.5
... and then update-initramfs -u. This just unconditionally adds the library modprobe needs.

More details:

The root of the problem seems to be the kmod initramfs-tools hook. It looks for kernel modules in the output to decide if it's going to need the decompression library. (which modprobe uses via dlopen) When I build my image for 6.12 there's a kernel module in the output at this point and it gets it right. On the 6.18 build there aren't any (yet) and it erroneously decides that it won't need it.

The offending bit of logic from /usr/share/initramfs-tools/hooks/kmod is:

Code:

if [ "$(find $DESTDIR/lib/modules/ -name "*.xz")" ]; then  copy_exec /usr/lib/*-linux-gnu/liblzma.so.5fi

Statistics: Posted by Erik970 — Wed May 27, 2026 11:04 pm



Viewing all articles
Browse latest Browse all 7742

Latest Images

Trending Articles



Latest Images