-
-
Save jrelo/447e179133aea78a1a38f782a48fec21 to your computer and use it in GitHub Desktop.
Unpacking and repacking initramfs images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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