Skip to content

Instantly share code, notes, and snippets.

@jrelo
Forked from derpston/gist:2069716
Created March 14, 2017 20:11
Show Gist options
  • Save jrelo/447e179133aea78a1a38f782a48fec21 to your computer and use it in GitHub Desktop.
Save jrelo/447e179133aea78a1a38f782a48fec21 to your computer and use it in GitHub Desktop.
Unpacking and repacking initramfs images
# Unpack
gzip -cd /boot/initramfs.example | cpio -i
# Repack
find . | cpio --dereference -o -H newc | gzip > /boot/initramfs.example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment