mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-21 16:39:30 +00:00
fix(rinv): recognize TEI, CDI and PSI IMM firmware prefixes
The rinv firmware-inventory path detects a Lenovo IMM by matching the firmware build-ID prefix (yuoo, 1aoo, tcoo). Some IMM firmware families report a tei, cdi or psi prefix and were therefore not recognized as an IMM. Add them. Recovered from the unmerged lenovobuild branch (e50cf37,201b2de). Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
This commit is contained in:
@@ -3361,7 +3361,7 @@ sub got_bmc_fw_info {
|
||||
my @returnd = (@{ $rsp->{data} });
|
||||
my @a = ($fw_rev2);
|
||||
my $prefix = pack("C*", @returnd[ 0 .. 3 ]);
|
||||
if ($prefix =~ /yuoo/i or $prefix =~ /1aoo/i or $prefix =~ /tcoo/i) { #we have an imm
|
||||
if ($prefix =~ /yuoo/i or $prefix =~ /1aoo/i or $prefix =~ /tcoo/i or $prefix =~ /tei/i or $prefix =~ /cdi/i or $prefix =~ /psi/i) { #we have an imm
|
||||
$isanimm = 1;
|
||||
}
|
||||
$mprom = sprintf("%d.%s (%s)", $fw_rev1, decodebcd(\@a), getascii(@returnd));
|
||||
|
||||
Reference in New Issue
Block a user