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

Advanced users • Re: preparing initramfs image and execution

$
0
0
And then packed it again using commands:

Code:

find . -print0 | cpio --null -o --format=newc | zstd -19 -o ../initramfs8.new
You should put your script in /etc/initramfs/scripts/local-premount/ (or similar; experiment) with the correct test at the top, and rebuild the initramfs with

Code:

update-initramfs -u
or similar. You will also need to add any modules that you require that aren't in there by default into /etc/modules for the scripts to pick them up and their dependencies (overlayfs comes to mind), and add any helpers (eg. any mount.overlayfs). The documentation is quite good.

Statistics: Posted by dickon — Wed Mar 12, 2025 1:51 pm



Viewing all articles
Browse latest Browse all 8621

Trending Articles