-
Notifications
You must be signed in to change notification settings - Fork 42
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
verify/extract --all Failed to extract images from payload #138
Comments
Thanks for the logs! It looks like this is a multithreading-related issue. Strangely enough, I cannot reproduce it with the default behavior (16 threads in my case), but if I force it to be single threaded with I'm looking into it now.
Good idea. I'll definitely add a version command. |
When using the xz2/static feature, the xz2 crate uses a bundled version of xz 5.2 and doesn't enable all of the available encoders and decoders. This prevents certain payload data from being decompressed. Fixes: #138 Signed-off-by: Andrew Gunnerson <[email protected]>
Issue: #138 Signed-off-by: Andrew Gunnerson <[email protected]>
When using the xz2/static feature, the xz2 crate uses a bundled version of xz 5.2 and doesn't enable all of the available encoders and decoders. This prevents certain payload data from being decompressed. Fixes: #138 Signed-off-by: Andrew Gunnerson <[email protected]>
So it turns out this wasn't a bug in avbroot, but in the Rust xz2 dependency. For the precompiled binaries, it's using a buggy/old version of xz (5.2 instead of the latest 5.4.4). Folks who built from source weren't affected because the default behavior is to use the (presumably not buggy) system version of xz. This should be fixed by #139. |
Thank you! Confirm fixed. |
avbroot 2.0.2 (Note: it might be good to have a version command, or display version in output)
Device: Google Pixel 4a (sunfish)
ROM: CalyxOS sunfish-ota_update-23412000.zip
ota extract
works (creates boot.img, vbmeta.img and vbmeta_system.img), but the same thing happens when runningota extract --all
:The text was updated successfully, but these errors were encountered: