repart: if partition already exists, required size may not be multiple of grain size

See partition_min_size_with_padding().
Fixes #37178.

(cherry picked from commit cb109e00c4)
This commit is contained in:
Yu Watanabe authored and Luca Boccassi committed 2025-06-25 13:36:10 +01:00
1 parent e9c4962cef
commit 4e6d6d885d
1 file changed
-1
-1
View File
@@ -1073,7 +1073,6 @@ static bool context_allocate_partitions(Context *context, uint64_t *ret_largest_
/* How much do we need to fit? */
required = partition_min_size_with_padding(context, p);
assert(required % context->grain_size == 0);
/* For existing partitions, we should verify that they'll actually fit */
if (PARTITION_EXISTS(p)) {