From 959b0d2d3c4ce10d3d3bc66699d67321ff2c4737 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Sun, 6 Sep 2026 02:03:08 -0300 Subject: [PATCH] fix(genesis): preserve s390x LPAR identity --- .../files/xcat-genesis-console/src/state.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xCAT-genesis-builder/oe/meta-xcat-genesis/recipes-core/xcat-genesis-console/files/xcat-genesis-console/src/state.c b/xCAT-genesis-builder/oe/meta-xcat-genesis/recipes-core/xcat-genesis-console/files/xcat-genesis-console/src/state.c index 26d80e34e..b6a356eab 100644 --- a/xCAT-genesis-builder/oe/meta-xcat-genesis/recipes-core/xcat-genesis-console/files/xcat-genesis-console/src/state.c +++ b/xCAT-genesis-builder/oe/meta-xcat-genesis/recipes-core/xcat-genesis-console/files/xcat-genesis-console/src/state.c @@ -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,