commit | 8e4e1119d8d1393cd4bb19a7142779dc8605f924 | [log] [tgz] |
---|---|---|
author | Saqib Khan <khansa@us.ibm.com> | Thu Aug 31 14:47:40 2017 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Tue Sep 12 21:07:52 2017 +0000 |
tree | c60e05e2f6a8c2aa9b577136a339d2cfb0e6c336 | |
parent | 51bab65c6f890641185ee327ff978f9ef1d738a7 [diff] |
Handle the case where obmc-flash-bmc-ubimount@.service fails - If the ubi volume creation fails then delete any mount points that were created during activation and remove the ubi volumes ro-<versionId> and kernel-<versionId> Resolves openbmc/openbmc#1616 Change-Id: Ifea1188831590a8372ff5f57c6ee6e3230c8ba82 Signed-off-by: Saqib Khan <khansa@us.ibm.com>
diff --git a/meta-phosphor/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc-ubiro@.service b/meta-phosphor/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc-ubiro@.service index 98366fd..3606a10 100644 --- a/meta-phosphor/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc-ubiro@.service +++ b/meta-phosphor/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc-ubiro@.service
@@ -1,5 +1,6 @@ [Unit] Description=Store read-only images %I to BMC storage +OnFailure=obmc-flash-bmc-ubiro-remove@%i.service [Service] Type=oneshot