From 4780ba94001087e0005e3784471ef7a7077c78aa Mon Sep 17 00:00:00 2001 From: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com> Date: Thu, 26 Feb 2026 13:54:56 -0300 Subject: [PATCH] fix: Fix genesis loop where osimage value grows at each boot Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com> --- xCAT-server/lib/xcat/plugins/seqdiscovery.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/seqdiscovery.pm b/xCAT-server/lib/xcat/plugins/seqdiscovery.pm index a40960209..ddd0c2df2 100644 --- a/xCAT-server/lib/xcat/plugins/seqdiscovery.pm +++ b/xCAT-server/lib/xcat/plugins/seqdiscovery.pm @@ -379,7 +379,9 @@ sub findme { if ($nodechain !~ /osimage=/) { $nodechain = $nodechain . ",osimage=$param{'osimage'}"; } else { - $nodechain =~ s/osimage=\w+/osimage=$param{'osimage'}/; + # Replace the full osimage token up to chain separator. + # Using \w+ corrupts image names containing '.' or '-'. + $nodechain =~ s/osimage=[^,;]+/osimage=$param{'osimage'}/; } } } # end if $param{'osimage'}