Skip to content

Instantly share code, notes, and snippets.

@madanadam
Created August 2, 2023 10:55
Show Gist options
  • Save madanadam/22be6db7be23d309762d655843dfb85d to your computer and use it in GitHub Desktop.
Save madanadam/22be6db7be23d309762d655843dfb85d to your computer and use it in GitHub Desktop.
Extract
zcat /boot/initrd-$(uname -r).img | cpio -idmv
Compress
find . | cpio -o -c -R root:root | gzip -9 > /boot/new.img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment