obmc-flash-bmc: Ignore fw_printenv return code

If an environment variable doesn't exist, fw_printenv returns 1
(error). With the addition of "set -eo pipefail" to the
obmc-flash-bmc script, this error causes the service that sets
the priorities to fail:

 witherspoon systemd[1]: Starting Set U-Boot environment variable...
 witherspoon obmc-flash-bmc[3883]: ## Error: "66089bab" not defined
 witherspoon systemd[1]: obmc-flash-bmc-setenv@66089bab\x3d0.service: Main process exited, code=exited, status=1/FAILURE
 witherspoon systemd[1]: Failed to start Set U-Boot environment variable.

Ignore the return code instead, the variable will be empty
if fw_printenv doesn't return a value.

Change-Id: I78b559e0ccb74ae52c73f1cc37b06a139a0d0e14
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
1 file changed
tree: 4e77828138dc8f4c9ab89e3fe9cf5217278c68cd
  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.