openpower-software-manager: Add PNOR MSL service
Add new service that verifies the PNOR minimum ship level (MSL)
and logs an error if the MSL is not met.
This service runs when the symlinks are updated to point to a
new PNOR version.
(From meta-openpower rev: d288c93e547e3944c16b1fc33f2ff98353f78aa6)
Change-Id: I0394efa8ce41bb32c44eadb55fb0568278c3b20c
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-openpower/recipes-phosphor/flash/openpower-software-manager.bb b/meta-openpower/recipes-phosphor/flash/openpower-software-manager.bb
index da4d286..02d63fa 100644
--- a/meta-openpower/recipes-phosphor/flash/openpower-software-manager.bb
+++ b/meta-openpower/recipes-phosphor/flash/openpower-software-manager.bb
@@ -55,6 +55,7 @@
obmc-flash-bios-cleanup.service \
obmc-flash-bios-enable-clearvolatile@.service \
obmc-flash-bios-check-clearvolatile@.service \
+ op-pnor-msl.service \
"
ENABLE_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-enable-clearvolatile@.service"
diff --git a/meta-openpower/recipes-phosphor/flash/openpower-software-manager/op-pnor-msl.service b/meta-openpower/recipes-phosphor/flash/openpower-software-manager/op-pnor-msl.service
new file mode 100644
index 0000000..dfd9e3c
--- /dev/null
+++ b/meta-openpower/recipes-phosphor/flash/openpower-software-manager/op-pnor-msl.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=OpenPOWER PNOR Minimum Ship Level Verification
+After=obmc-flash-bios-updatesymlinks.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/env openpower-pnor-msl
+SyslogIdentifier=openpower-pnor-msl
+
+[Install]
+WantedBy=obmc-flash-bios-updatesymlinks.service