mirror of
https://github.com/systemd/systemd.git
synced 2025-02-13 01:57:42 +03:00
repart: initialize seed earlier
As the seed is used by context_load_partition_table() -> derive_uuid(). Fixes #34257.
This commit is contained in:
parent
8d78191a46
commit
b8a8000aba
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user