summaryrefslogtreecommitdiffstats
path: root/ubi/obmc-flash-bios-updatesymlinks.service
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2019-05-31 13:25:36 -0500
committerAdriana Kobylak <anoo@us.ibm.com>2019-06-21 10:07:04 -0500
commit10e915abf1bd31d8b1dae8d01c731ac8dd76c7c0 (patch)
tree692c6eea5cbce78bbfd4837120ae203e708d4503 /ubi/obmc-flash-bios-updatesymlinks.service
parent851bc064b23c0fcb9c19be30948d1e4f5ec0253a (diff)
downloadopenpower-pnor-code-mgmt-10e915abf1bd31d8b1dae8d01c731ac8dd76c7c0.tar.gz
openpower-pnor-code-mgmt-10e915abf1bd31d8b1dae8d01c731ac8dd76c7c0.zip
Move script and systemd service files into repo
Move the obmc-flash-bios script and systemd service files from openbmc/openbmc to the local repo. Tested: PNOR code update was successful on witherspoon. Change-Id: Ibb7adba0638b8205173cb0ec4d4d61f2aeb6ce28 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'ubi/obmc-flash-bios-updatesymlinks.service')
-rw-r--r--ubi/obmc-flash-bios-updatesymlinks.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/ubi/obmc-flash-bios-updatesymlinks.service b/ubi/obmc-flash-bios-updatesymlinks.service
new file mode 100644
index 000000000..d486088ec
--- /dev/null
+++ b/ubi/obmc-flash-bios-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-flash-bios updatesymlinks
+
+[Install]
+WantedBy=mboxd.service mboxd-reload@.service
OpenPOWER on IntegriCloud