liblp: Allow to flash on bigger block device
Needed for using Retrofit Dynamic Partitions on unified targets, which has different partition sizes on different devices. Change-Id: I2b4c05401569ce5fc301ebafa7d130c3b0d87c64
This commit is contained in:
parent
c21a3ff9c0
commit
9dde39ac0f
|
@ -138,8 +138,8 @@ static bool ValidateAndSerializeMetadata([[maybe_unused]] const IPartitionOpener
|
||||||
PERROR << partition_name << ": ioctl";
|
PERROR << partition_name << ": ioctl";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (info.size != block_device.size) {
|
if (info.size < block_device.size) {
|
||||||
LERROR << "Block device " << partition_name << " size mismatch (expected"
|
LERROR << "Block device " << partition_name << " size is too small (expected"
|
||||||
<< block_device.size << ", got " << info.size << ")";
|
<< block_device.size << ", got " << info.size << ")";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue