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 withAnd then packed it again using commands:Code:
find . -print0 | cpio --null -o --format=newc | zstd -19 -o ../initramfs8.new
Code:
update-initramfs -uStatistics: Posted by dickon — Wed Mar 12, 2025 1:51 pm