mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
repart: if partition already exists, required size may not be multiple of grain size
See partition_min_size_with_padding(). Fixes #37178.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
96e481bfbd
commit
cb109e00c4
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user