PNOR: Create a service file for updating symlinks.
- Replace the functionality of updating the symlinks
under openpower-pnor-code-mgmt to a service file.
- The new service has a dependency on mboxd.service.
This allows us to only defer the symlink creation/update
until the mboxd.service is started, which prevents
symlink updates while HOST is running.
Change-Id: I8542aa24a9058af9560a32eec5140ff5ddee60d1
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
diff --git a/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios-updatesymlinks.service b/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios-updatesymlinks.service
new file mode 100644
index 0000000..a7e2b7a
--- /dev/null
+++ b/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios-updatesymlinks.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Updates symlinks for active PNOR version
+
+[Service]
+Type=oneshot
+RemainAfterExit=no
+ExecStart={sbindir}/obmc-flash-bios updatesymlinks
+
+WantedBy=mboxd.service mboxd-reload@.service