From: Yu Watanabe Date: Fri, 18 Apr 2025 18:41:45 +0000 (+0900) Subject: repart: if partition already exists, required size may not be multiple of grain size X-Git-Tag: v258-rc1~410 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb109e00c45c8e92b1020e6249aac4a212e7f72d;p=thirdparty%2Fsystemd.git repart: if partition already exists, required size may not be multiple of grain size See partition_min_size_with_padding(). Fixes #37178. --- diff --git a/src/repart/repart.c b/src/repart/repart.c index cb0a0bda3a8..1b8d02ac1ab 100644 --- a/src/repart/repart.c +++ b/src/repart/repart.c @@ -1124,7 +1124,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)) {