summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.c
diff options
context:
space:
mode:
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