summaryrefslogtreecommitdiffstats
path: root/ui/ncurses
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-11-15 15:56:39 +1100
committerJeremy Kerr <jk@ozlabs.org>2013-11-22 10:45:54 +0800
commit937f660b2e3f6d517e4114e8096cb640715b1ae8 (patch)
treefd45111d6891b5cf52a75c78b65c05eaf0929c76 /ui/ncurses
parent8b2ccd525b328994d3e62c01092b20859a23e36d (diff)
downloadtalos-petitboot-937f660b2e3f6d517e4114e8096cb640715b1ae8.tar.gz
talos-petitboot-937f660b2e3f6d517e4114e8096cb640715b1ae8.zip
ui/ncurses: Add block devices to system info screen
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses')
-rw-r--r--ui/ncurses/nc-sysinfo.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/ui/ncurses/nc-sysinfo.c b/ui/ncurses/nc-sysinfo.c
index 4cba9a9..1d7bd1e 100644
--- a/ui/ncurses/nc-sysinfo.c
+++ b/ui/ncurses/nc-sysinfo.c
@@ -167,9 +167,24 @@ static void sysinfo_screen_populate(struct sysinfo_screen *screen,
line("%-12s %s", "System type:", sysinfo->type ?: "");
line("%-12s %s", "System id:", sysinfo->identifier ?: "");
- line(NULL);
- if (sysinfo->n_interfaces)
+ if (sysinfo->n_blockdevs) {
+ line(NULL);
+ line("Storage devices");
+ }
+
+ for (i = 0; i < sysinfo->n_blockdevs; i++) {
+ struct blockdev_info *info = sysinfo->blockdevs[i];
+
+ line("%s:", info->name);
+ line(" UUID: %s", info->uuid);
+ line(" mounted at: %s", info->mountpoint);
+ line(NULL);
+ }
+
+ if (sysinfo->n_interfaces) {
+ line(NULL);
line("Network interfaces");
+ }
for (i = 0; i < sysinfo->n_interfaces; i++) {
struct interface_info *info = sysinfo->interfaces[i];
OpenPOWER on IntegriCloud