summaryrefslogtreecommitdiffstats
path: root/vpnor/obmc-vpnor-updatesymlinks.service
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2019-10-08 11:35:55 -0500
committerAdriana Kobylak <anoo@us.ibm.com>2019-10-25 09:20:20 -0500
commitf3dfe65de8487364c21b7b49396cf912821ea339 (patch)
tree97117eca8fcb20c478dfbffa9d7d0a45b9246198 /vpnor/obmc-vpnor-updatesymlinks.service
parent85f25407598494d8f91890df5152501680a067dd (diff)
downloadopenpower-pnor-code-mgmt-f3dfe65de8487364c21b7b49396cf912821ea339.tar.gz
openpower-pnor-code-mgmt-f3dfe65de8487364c21b7b49396cf912821ea339.zip
Move updatesymlinks to new vpnor feature
The updatesymlinks functionality is to support virtual pnor and it does not depend on the filesystem type. Move it to a new vpnor feature so that users can make use of this feature without being tied to UBI, for example on a eMMC that has a combined BMC+PNOR image. Tested: Verified that the witherspoon image contained the new script and service file and that it powered on to the host. Change-Id: Ic5e51dfde81718e5e285f010be67afbd58eac2e1 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'vpnor/obmc-vpnor-updatesymlinks.service')
-rw-r--r--vpnor/obmc-vpnor-updatesymlinks.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/vpnor/obmc-vpnor-updatesymlinks.service b/vpnor/obmc-vpnor-updatesymlinks.service
new file mode 100644
index 000000000..8184f51f6
--- /dev/null
+++ b/vpnor/obmc-vpnor-updatesymlinks.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Updates symlinks for active PNOR version
+Before=mboxd.service
+Before=mboxd-reload@0.service
+After=org.open_power.Software.Host.Updater.service
+After=op-reset-chassis-running@0.service
+ConditionPathExists=!/run/openbmc/chassis@0-on
+
+[Service]
+Type=oneshot
+RemainAfterExit=no
+ExecStart=/usr/bin/obmc-vpnor-util updatesymlinks
+
+[Install]
+WantedBy=mboxd.service mboxd-reload@.service
OpenPOWER on IntegriCloud