phosphor-software-manager: New service file to create ubi rw volume
Add service file and script to create a ubi read-write volume
to store the rwfs. The volume would be 4MB as that's the current
size of the rwfs image.
The volume is not tied to a version so that read-write data is
persisted through bmc code updates.
The mtd device location can be passed through the recipe.
Set it to the "pnor" mtd as the default. This can be changed via a
per-system bbappend to other chips if desired, such as the alternate
bmc chip.
Change-Id: Id3e40e28eaf60c9fdccdca1484d144014f2bc8df
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc-ubirw.service b/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc-ubirw.service
new file mode 100644
index 0000000..cef57e0
--- /dev/null
+++ b/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc-ubirw.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Create BMC read-write ubi volume
+
+[Service]
+Type=oneshot
+RemainAfterExit=no
+ExecStart={sbindir}/obmc-flash-bmc ubirw {RW_MTD} rw