Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 711fa763 authored by me-cafebabe's avatar me-cafebabe Committed by 0xCAFEBABE
Browse files

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
parent 671d3ca8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -138,8 +138,8 @@ static bool ValidateAndSerializeMetadata([[maybe_unused]] const IPartitionOpener
            PERROR << partition_name << ": ioctl";
            return false;
        }
        if (info.size != block_device.size) {
            LERROR << "Block device " << partition_name << " size mismatch (expected"
        if (info.size < block_device.size) {
            LERROR << "Block device " << partition_name << " size is too small (expected"
                   << block_device.size << ", got " << info.size << ")";
            return false;
        }