summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-12-09 10:32:41 +1100
committerSam Mendoza-Jonas <sam@mendozajonas.com>2016-02-09 13:40:15 +1100
commitd974c3c39237c8e94bb3a51d3511d18dea01043e (patch)
treeb20a31ea0911c0d6cd1c6340620ecdf78ab9c0e6 /ui
parentaaeba8e515e6b3416718b7feac985f01fb948b8f (diff)
downloadpetitboot-d974c3c39237c8e94bb3a51d3511d18dea01043e.zip
petitboot-d974c3c39237c8e94bb3a51d3511d18dea01043e.tar.gz
Display VERSION partition info on BMC machines
On supported platforms read the VERSION partition on startup and display the available versions strings in the System Information screen. This adds a skeleton hostboot.c to support possible additional BMC platform support. Signed-off-by: Sam Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/ncurses/nc-sysinfo.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/ui/ncurses/nc-sysinfo.c b/ui/ncurses/nc-sysinfo.c
index 5ced871..c01b352 100644
--- a/ui/ncurses/nc-sysinfo.c
+++ b/ui/ncurses/nc-sysinfo.c
@@ -65,6 +65,22 @@ static void sysinfo_screen_populate(struct sysinfo_screen *screen,
line("%-12s %s", _("System type:"), sysinfo->type ?: "");
line("%-12s %s", _("System id:"), sysinfo->identifier ?: "");
+ if (sysinfo->n_current) {
+ line(NULL);
+ line("%s", _("Current platform versions:"));
+ for (i = 0; i < sysinfo->n_current; i++) {
+ line("\t%s", sysinfo->platform_current[i] ?: "");
+ }
+ }
+
+ if (sysinfo->n_other) {
+ line(NULL);
+ line("%s", _("Alternate platform versions:"));
+ for (i = 0; i < sysinfo->n_other; i++) {
+ line("\t%s", sysinfo->platform_other[i] ?: "");
+ }
+ }
+
if (sysinfo->n_blockdevs) {
line(NULL);
line(_("Storage devices"));
OpenPOWER on IntegriCloud