obmc-flash-bmc: Add ExecStartPre and Post to update environment variables

Backup the environment variables before performing an update.
Update the environment variables that point to the new volumes only
if all the ExecStart commands are successful. Also ensure that the
volumes exist so that the env variables point to an existing volume.

Change-Id: I4f63076730f0843677b6ac8bf166c02ae36eaf2e
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
2 files changed
tree: e6c667102f2ddd5fcd74a60a2926f40d56e3474f
  1. classes/
  2. common/
  3. conf/
  4. COPYING.apache-2.0
  5. COPYING.MIT
  6. LICENSE