Created
September 2, 2022 06:57
-
-
Save brant-ruan/784808bc192fff533d8be22932c4e2b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Decompress a .cpio.gz packed file system | |
rm -rf ./initramfs && mkdir initramfs | |
pushd . && pushd initramfs | |
cp ../initramfs.cpio.gz . | |
gzip -dc initramfs.cpio.gz | cpio -idm &>/dev/null && rm initramfs.cpio.gz | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment