Move UBI service files into repo
Move the service files for the UBI layout from the openbmc/openbmc
repo to the local one.
Tested: The service files are installed in /lib/systemd/system/ and
code update on Witherspoon is successful.
Change-Id: I988045886fadbd2216ca91aba952a40ca1228e33
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/ubi/obmc-flash-bmc-ubiremount.service b/ubi/obmc-flash-bmc-ubiremount.service
new file mode 100644
index 0000000..52ac12b
--- /dev/null
+++ b/ubi/obmc-flash-bmc-ubiremount.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Remount the ubi volume after a reboot
+Wants=xyz.openbmc_project.Software.BMC.Updater.service
+Before=xyz.openbmc_project.Software.BMC.Updater.service
+Wants=obmc-flash-bmc-setenv@rwreset.service
+After=obmc-flash-bmc-setenv@rwreset.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=no
+ExecStart=/usr/bin/obmc-flash-bmc ubiremount
+
+[Install]
+WantedBy=multi-user.target