From 8b2ccd525b328994d3e62c01092b20859a23e36d Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Fri, 15 Nov 2013 15:23:54 +1100 Subject: discover: populate sysinfo with block devices Signed-off-by: Jeremy Kerr --- discover/device-handler.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'discover/device-handler.c') 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); -- cgit v1.2.1