Before I created the correct initramfs file, my RPi 5 still booted. On an RPi, what's the advantage of having an initramfs file. I understand the concept (early loads of kernel modules) but what use-case would this be used for on an RPi?
Booting a Pi in a configuration that requires kernel functions/drivers that have been compiled as modules rather than kernel builtins.
Example 1: On Bullseye btrfs was built as a module (probably still is on Bookworm but I haven't checked). If you want your root partition on btrfs and don't want to build a custom kernel you need an initramfs/initrd.
Example 2: Network booting over the USB ethernet gadget. Same reason as above.
Example 3: A custom run entirely from RAM OS. Most of those put everything into an initramfs/initrd
Statistics: Posted by thagrol — Sat Jan 13, 2024 12:35 am