summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-03-23 17:41:28 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-07-11 14:32:17 +1000
commit417265c68731537deeed22a3a3530cd6dd986513 (patch)
tree670d46ca2802a90b966fbb84b5932e5134497157 /discover/device-handler.c
parentf03763aec302d379fe9f7494af136a215e57ab16 (diff)
downloadtalos-petitboot-417265c68731537deeed22a3a3530cd6dd986513.zip
talos-petitboot-417265c68731537deeed22a3a3530cd6dd986513.tar.gz
discover/sysinfo: Add system_info_reinit()
Currently over reinit events the system info is not affected. However network and block device information can change over reinit, so clear this information. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/device-handler.c')
-rw-r--r--discover/device-handler.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index ec1eee3..a0c21b7 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -1407,6 +1407,8 @@ static void device_handler_reinit_sources(struct device_handler *handler)
return;
}
+ system_info_reinit();
+
udev_reinit(handler->udev);
network_shutdown(handler->network);
OpenPOWER on IntegriCloud