Always attempt to download full set of system imgs #501
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current logic might only download the
system
andproduct
images from the system build'simg.zip
. We want the full set of system images if they exist. That means we always expect asystem.img
, the rest are optional.Since we always download the target files if there is a
--system_build
present we might as well skip theimg.zip
and extract them from the target files.Removed
init_boot
from the list of system images to fetch. See bug for context.This also fixes that files from this particular codepath were not added to the
fetcher_config.json
and not de-sparsed.Bug: 333616172
Test: cvd fetch --target_directory=/tmp/cvd/chd_target_files --default_build=aosp-main --system_build=11692693
Test: # slightly older aosp-main build
Test: cd /tmp/cvd/fetch_test
Test: shasum -b vbmeta_system.zip
Test: bsdtar -xf system/<target_files_zip>
Test: shasum -b IMAGES/vbmeta_system.zip
Test: # the hashes should match