Created
March 18, 2012 07:42
-
-
Save derpston/2069716 to your computer and use it in GitHub Desktop.
Unpacking and repacking initramfs images
This file contains 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 |
for me with debian 11 is not working with --dereference
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Confirmed working on Debian