2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-06-18 01:20:46 +00:00

fix: Fix genesis loop where osimage value grows at each boot

Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
This commit is contained in:
Daniel Hilst Selli
2026-02-26 13:54:56 -03:00
parent 0e0ead786f
commit 4780ba9400
+3 -1
View File
@@ -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'}