Merge "fastbootd: Better error message when boot_devices is missing." am: 00dc20701a
am: 5f8e0d9055
Change-Id: Ia7d896bcd0b9a0a5b899d348d1a07951e8ad8696
This commit is contained in:
commit
0e4e399251
1 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue