PNOR: Create service file to remove read only UBI volumes
- A template service file that takes the version Id and
removes the pnor-ro-<versionId> volumes. This can be
used by the Object.Delete interface implementation to
remove a software version.
Change-Id: Ife7763825d947e81790d23a436ffd8c9e6762b28
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
diff --git a/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios-ubiumount-ro@.service b/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios-ubiumount-ro@.service
new file mode 100644
index 0000000..acf1931
--- /dev/null
+++ b/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios-ubiumount-ro@.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Remove UBIFS volume pnor-ro-%I
+Wants=obmc-flash-bios-ubiattach.service
+After=obmc-flash-bios-ubiattach.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=no
+ExecStart={sbindir}/obmc-flash-bios ubiumount pnor-ro-%i