mirror of
https://github.com/systemd/systemd.git
synced 2026-11-06 13:27:45 +00:00
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:
1 parent
e9c4962cef
commit
4e6d6d885d
1 file changed
-1
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user