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:
@@ -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'}
|
||||
|
||||
Reference in New Issue
Block a user