2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Add the build id of pending UEFI

If UEFI is pending on IBM/Lenovo x86 systems, present
the build id of what the next boot should bring.
This commit is contained in:
jjohnson2 2015-05-13 10:18:22 -04:00
parent ff20b96dba
commit 178a63cd4a

View File

@ -2082,7 +2082,7 @@ sub got_bios_buildid {
my $sessdata = $res{sessdata};
if ($res{data}) {
$sessdata->{biosbuildid} = $res{data};
get_imm_property(property=>"/v2/bios/pending_build_version",callback=>\&got_bios_pending_buildid,sessdata=>$sessdata);
get_imm_property(property=>"/v2/bios/pending_build_id",callback=>\&got_bios_pending_buildid,sessdata=>$sessdata);
} else {
initfru_with_mprom($sessdata);
}
@ -2092,7 +2092,7 @@ sub got_bios_pending_buildid {
my $sessdata = $res{sessdata};
$sessdata->{biosbuildpending} = 0;
if ($res{data} and $res{data} ne ' ') {
$sessdata->{biosbuildpending} = 1;
$sessdata->{biosbuildpending} = $res{data};
}
get_imm_property(property=>"/v2/bios/build_version",callback=>\&got_bios_version,sessdata=>$sessdata);
}
@ -2116,7 +2116,7 @@ sub got_bios_date {
$fru->desc("UEFI Version");
my $pending = "";
if ($sessdata->{biosbuildpending}) {
$pending = " [PENDING]";
$pending = " [PENDING: $sessdata->{biosbuildpending}]";
}
my $value = $sessdata->{biosbuildversion}." (".$sessdata->{biosbuildid}." ".$sessdata->{biosbuilddate}.")$pending";
$fru->value($value);