Merge "fastbootd: Better error message when boot_devices is missing."

am: 00dc20701a

Change-Id: I5a5297e2380a7b257590e2db5eb3fac620d3e44f
This commit is contained in:
David Anderson 2018-12-21 00:06:48 -08:00 committed by android-build-merger
commit 5f8e0d9055

View file

@ -143,6 +143,11 @@ bool UpdateSuper(FastbootDevice* device, const std::string& super_name, bool wip
return device->WriteFail("Data is not a valid logical partition metadata image");
}
if (!FindPhysicalPartition(super_name)) {
return device->WriteFail("Cannot find " + super_name +
", build may be missing broken or missing boot_devices");
}
// If we are unable to read the existing metadata, then the super partition
// is corrupt. In this case we reflash the whole thing using the provided
// image.