A very techie post on my blog, so I don't expect this to be of general interest. Try browsing the categories for something more interesting...
The perennial problem of ensuring your initrd or initramfs file has been correctly generated for the appropriate Pi architecture
USE THESE IDEAS AT YOUR OWN RISK!
Edit:The original script was not smart enough to manage the requirements of the Pi Zero (armv6l), but a helpful perl incantation found on a forum resolves this omission. The script has been in use for some time.
IMPORTANT - Please note that as of April 2021, Raspberry Pi OS has changed the way it generates initrds, so this script no longer works correctly. I will document alterations here if I manage to understand the changes.