openpower-pnor-code-mgmt: Initial recipe
Create recipe for the openpower-pnor-code-mgmt repo.
Move the pnor-specific service files from the phosphor
layer to the open-power one.
Add the new openpower-software-manager to packagegroups.
Change-Id: Iab47b82e6872f7f92aed6260c51eaf0acf744aeb
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios-ubimount@.service b/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios-ubimount@.service
new file mode 100644
index 0000000..5abab7f
--- /dev/null
+++ b/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios-ubimount@.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Mount UBIFS volume pnor-rw-%I
+Requires=obmc-flash-bios-ubiattach.service
+After=obmc-flash-bios-ubiattach.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/bin/sh -c '{sbindir}/ubimkvol /dev/ubi0 -N pnor-rw-%i -s 1MiB; \
+ mkdir /media/pnor-rw-%i; \
+ mount -t ubifs ubi0:pnor-rw-%i /media/pnor-rw-%i'