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

Advanced users • Re: One initramfs to rule them all (and in the darkness bind them)

$
0
0
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.
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.)
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?
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.

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



Viewing all articles
Browse latest Browse all 4788

Trending Articles