Skip to content

extractor.sh: Add support for extracting split sparse super images #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions extractor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ superimage() {
if [[ ! -s super.img.raw ]] && [ -f super.img ]; then
mv super.img super.img.raw
fi
if [[ $(ls | grep "super.img" | wc -l) -gt 1 ]]; then
echo "Creating super.img.raw ..."
simg2img `ls | grep super.img | sort -V` super.img.raw

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo? $simg2img

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhm, Yes. Thanks for pointing that out.

fi
for partition in $PARTITIONS; do
($lpunpack --partition="$partition"_a super.img.raw || $lpunpack --partition="$partition" super.img.raw) 2>/dev/null
if [ -f "$partition"_a.img ]; then
Expand Down