diff options
author | Saqib Khan <khansa@us.ibm.com> | 2017-08-31 14:47:40 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-09-12 21:07:52 +0000 |
commit | 8e4e1119d8d1393cd4bb19a7142779dc8605f924 (patch) | |
tree | c60e05e2f6a8c2aa9b577136a339d2cfb0e6c336 /meta-phosphor/common/recipes-phosphor | |
parent | 51bab65c6f890641185ee327ff978f9ef1d738a7 (diff) | |
download | talos-openbmc-8e4e1119d8d1393cd4bb19a7142779dc8605f924.tar.gz talos-openbmc-8e4e1119d8d1393cd4bb19a7142779dc8605f924.zip |
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>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor')
-rw-r--r-- | meta-phosphor/common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-bmc-ubiro@.service | 1 |
1 files changed, 1 insertions, 0 deletions
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 98366fd02..3606a10ae 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 |