Skip to content

Instantly share code, notes, and snippets.

@tjhartmann
Last active December 20, 2015 04:29
Show Gist options
  • Save tjhartmann/6071473 to your computer and use it in GitHub Desktop.
Save tjhartmann/6071473 to your computer and use it in GitHub Desktop.
Initrd foo
# extract old initrd
mkdir newinitrd
cd newinitrd
zcat ../oldinitrd.img | cpio -ivd
# make changes
# create new initrd
find . | cpio -o -H newc | gzip > /tmp/newinitrd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment