Add "set -eo pipefail" to obmc-flash-bmc

Have seen failures that weren't detected in obmc-flash-bmc.
Move to "set -eo pipefail", so all failures will cause the
script to fail and exit. Removed checks for the rc. Also,
removed the ubi attach command since done in U-Boot now.
Added a check for if the ubi block exists, so not get a
failure when it does exist already.

Resolves openbmc/openbmc#2801

Change-Id: Iaa60d041d1247761fd25a8ae33421f7b3c7335dd
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
1 file changed
tree: 824f4fc0065b047c707f2ecbb72500e7f361f684
  1. classes/
  2. common/
  3. conf/
  4. COPYING.apache-2.0
  5. COPYING.MIT
  6. LICENSE
  7. README.md
README.md

OpenBMC

meta-phosphor is the OpenBMC layer. This layer should be included for all OpenBMC systems. The OpenBMC layer contains content which is shared between all OpenBMC systems.