Skip to content

Instantly share code, notes, and snippets.

@mohan43u
Created August 18, 2020 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohan43u/f84d86d4210db0f04aa7c17899eee4f6 to your computer and use it in GitHub Desktop.
Save mohan43u/f84d86d4210db0f04aa7c17899eee4f6 to your computer and use it in GitHub Desktop.

unback

gzip -dc boot/berryboot.img | sudo cpio -iuvdm -D berryboot

repack

(C="${PWD}"; cd berryboot; sudo find . | sudo cpio -ov --format=newc | gzip -9 >"${C}"/berryboot.img)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment