Skip to content

Instantly share code, notes, and snippets.

@derpston
Created March 18, 2012 07:42
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