Skip to content

Instantly share code, notes, and snippets.

@derpston
Created March 18, 2012 07:42
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save derpston/2069716 to your computer and use it in GitHub Desktop.
Save derpston/2069716 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
@Thor-x86
Copy link

Confirmed working on Debian

@backit
Copy link

backit commented Sep 29, 2021

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