I've been hacking on a Raspberry Pi with an Ubuntu 15.04 image. Since I've got an encrypted boot setup, I need to generate an initramfs.gz
image in the first partition of the filesystem, which is the plaintext boot device.
Ubuntu automatically generates initramfs images in /boot/initrd.img-$(uname -r)
. Is there a hook that I can catch with a script so I can automatically copy the latest built image over to /boot/firmware/initramfs.gz
?
.
, thenfind .|cpio -o -H newc | gzip > ../initramfs_data.cpio.gz