item_updater_mmc: Implement bios factory reset
Implemented the method ItemUpdaterMMC::reset. It clears files in
/media/hostfw/ related to managing console and virtualization
information, then recreates those files using bus calls to service
files. Added checks to obmc-flash-bios so it doesn't cause problems
when its methods are run multiple times. Modified latest services to
allow them to run more than once. Services which depend on the init
service will run after it.
Tested: Created extra files in the directories that the reset method
removes. Called the reset method using busctl. Verified that the
added files were removed and that the removed files that belong were
recreated. Verified that all services called were run.
Signed-off-by: Isaac Kurth <blisaac91@gmail.com>
Change-Id: I1e04e97a7c5c9e3fa8b5ee7af47b7320ff3e91d3
diff --git a/mmc/openpower-process-host-firmware.service b/mmc/openpower-process-host-firmware.service
index a9e419f..02ed9f3 100644
--- a/mmc/openpower-process-host-firmware.service
+++ b/mmc/openpower-process-host-firmware.service
@@ -5,7 +5,7 @@
[Service]
Type=oneshot
-RemainAfterExit=yes
+RemainAfterExit=no
ExecStart=/usr/bin/openpower-update-manager process-host-firmware
[Install]