manager: Save and Restore BIOS Attributes
This commit saves any updates made to BIOS attributes
to VPD.
It also restores the attributes from the VPD when we
start VPD manager.
Signed-off-by: Santosh Puranik <santosh.puranik@in.ibm.com>
Change-Id: Idb28e2f89d21ccd89eb8e56490eb7f31397ff5f5
diff --git a/vpd-manager/manager.cpp b/vpd-manager/manager.cpp
index 932cc9d..de40edf 100644
--- a/vpd-manager/manager.cpp
+++ b/vpd-manager/manager.cpp
@@ -2,6 +2,7 @@
#include "manager.hpp"
+#include "bios_handler.hpp"
#include "common_utility.hpp"
#include "editor_impl.hpp"
#include "gpioMonitor.hpp"
@@ -45,6 +46,9 @@
listenHostState();
listenAssetTag();
+ // Create an instance of the BIOS handler
+ BiosHandler biosHandler{_bus, *this};
+
auto event = sdeventplus::Event::get_default();
GpioMonitor gpioMon1(jsonFile, event);