mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-08 20:50:44 +00:00
fix(genesis): preserve s390x LPAR identity
This commit is contained in:
+5
-3
@@ -222,9 +222,11 @@ static void set_s390_identity(const char *proc_root, struct console_state *state
|
||||
char path[VALUE_SIZE * 2];
|
||||
|
||||
snprintf(path, sizeof(path), "%s/sysinfo", proc_root);
|
||||
if (!useful_identity(state->uuid) &&
|
||||
!xcat_read_colon_key(path, "VM00 UUID", state->uuid, sizeof(state->uuid)))
|
||||
xcat_read_colon_key(path, "LPAR UUID", state->uuid, sizeof(state->uuid));
|
||||
if (!useful_identity(state->uuid)) {
|
||||
xcat_read_colon_key(path, "VM00 UUID", state->uuid, sizeof(state->uuid));
|
||||
if (!useful_identity(state->uuid))
|
||||
xcat_read_colon_key(path, "LPAR UUID", state->uuid, sizeof(state->uuid));
|
||||
}
|
||||
}
|
||||
|
||||
static void split_action(const char *destiny, char *action, size_t action_size, char *target,
|
||||
|
||||
Reference in New Issue
Block a user