Skip to content

Instantly share code, notes, and snippets.

@erincandescent
Created January 6, 2020 01:04
Show Gist options
  • Save erincandescent/e1f62327b24c9f2751b70343da8b50f2 to your computer and use it in GitHub Desktop.
Save erincandescent/e1f62327b24c9f2751b70343da8b50f2 to your computer and use it in GitHub Desktop.
mkdir modloop-rpi
unsquashfs -d modloop-rpi/lib ${alpinePiArmhf}/boot/modloop-rpi 'modules/*/modules.*' 'modules/*/kernel/net/packet/af_packet.ko'
(cd modloop-rpi && find . | cpio -H newc -ov | gzip) > initramfs-ext-rpi
cat ${alpinePiArmhf}/boot/initramfs-rpi initramfs-ext-rpi > $out/initramfs-rpi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment