Distros use an initramfs per kernel image, so the provided tools likely assume that. (A shared initramfs is not very scalable, and defeats some of the benefits of having proven backup kernel images.)So, given that an initramfs is mostly a cpio archive, surely there's a way to stuff all the required modules into a single one without getting into kernel (cross) compilation.
On x86, file knows how to get the kernel release from the bzImage file. But RPiOS uses pure gzip format (uncompressed by firmware bootloader) for 64bit, and ARM-specific zImage for 32bit.Or failing that an easy, scriptable way to get the magic string from the installed but not running kernels and pass that to initramfs-tools?
Since bullseye only allowed installing one kernel package at a time, can you not get the release name from ls /lib/modules/ or dpkg -L raspberrypi-kernel ?
Statistics: Posted by jojopi — Tue Sep 03, 2024 11:56 pm