diff options
author | David Anderson <dvander@google.com> | 2018-11-05 15:21:44 -0800 |
---|---|---|
committer | David Anderson <dvander@google.com> | 2018-11-06 11:43:03 -0800 |
commit | 96a9fd406326339e66ed833f2a1a2349c0173210 (patch) | |
tree | 4de94b8206320c8a7e16352ad580d02b70ee4271 /fastboot/device/variables.cpp | |
parent | fa36e318cfb1c410d55e5378f8ff810def18ad7b (diff) |
fastboot: Fix flashing both slots with dynamic partitions.
When updating the super partition, attempt to preserve partitions from
the other slot. If any partition can't be preserved, fail and require a
wipe (-w) to proceed. This allows two bootable builds to be flashed to
both slots.
The preserve operation can fail if the metadata is not compatible with
the old partition layout. For example, if the partition references a
group that no longer exists, or a group changed its capacity, or the
metadata's block device list or list contents changed.
Bug: N/A
Test: liblp_test gtest
fastboot flashall --skip-secondary
Change-Id: I53fdd29bc1f0ef132005a93d3cf1cdcd7f2fc05f
Diffstat (limited to 'fastboot/device/variables.cpp')
0 files changed, 0 insertions, 0 deletions