summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-11-15 15:23:54 +1100
committerJeremy Kerr <jk@ozlabs.org>2013-11-22 10:45:54 +0800
commit8b2ccd525b328994d3e62c01092b20859a23e36d (patch)
tree124fb1700a947188fecfd5b5ebebe443452c2fdb /discover/device-handler.c
parent263968fb67cdaa58e1ff8d9a35a72921ffbac7ef (diff)
downloadtalos-petitboot-8b2ccd525b328994d3e62c01092b20859a23e36d.tar.gz
talos-petitboot-8b2ccd525b328994d3e62c01092b20859a23e36d.zip
discover: populate sysinfo with block devices
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/device-handler.c')
-rw-r--r--discover/device-handler.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index 725e491..9033c4f 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -23,6 +23,7 @@
#include "parser.h"
#include "resource.h"
#include "paths.h"
+#include "sysinfo.h"
#include "boot.h"
struct device_handler {
@@ -602,6 +603,10 @@ int device_handler_discover(struct device_handler *handler,
if (rc)
goto out;
+ /* add this device to our system info */
+ system_info_register_blockdev(dev->device->id, dev->uuid,
+ dev->mount_path);
+
/* run the parsers. This will populate the ctx's boot_option list. */
iterate_parsers(ctx);
OpenPOWER on IntegriCloud