repart: initialize seed earlier
As the seed is used by context_load_partition_table() -> derive_uuid(). Fixes #34257.
This commit is contained in:
@@ -8483,6 +8483,10 @@ static int run(int argc, char *argv[]) {
|
||||
if (!context)
|
||||
return log_oom();
|
||||
|
||||
r = context_read_seed(context, arg_root);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
r = context_copy_from(context);
|
||||
if (r < 0)
|
||||
return r;
|
||||
@@ -8560,10 +8564,6 @@ static int run(int argc, char *argv[]) {
|
||||
return r;
|
||||
}
|
||||
|
||||
r = context_read_seed(context, arg_root);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
/* Make sure each partition has a unique UUID and unique label */
|
||||
r = context_acquire_partition_uuids_and_labels(context);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user