ensure volatile clear occurs after reset check

If the host reset target is running, ensure it completes before
executing the volatile PNOR cleaning service. This target is responsible
for detecting if the host is up and running. If the host is running and
the /run/openbmc/host@0-on file is created, then this service should not
run.

Tested:
Executed a bmc reset while the host was up and verified via the journal
that targets and services were executed as expected.

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Idcb6e5d5f6a2ff95eff384f613969617127a35dc
diff --git a/ubi/obmc-flash-bios-enable-clearvolatile@.service b/ubi/obmc-flash-bios-enable-clearvolatile@.service
index 10537d7..bdadc30 100644
--- a/ubi/obmc-flash-bios-enable-clearvolatile@.service
+++ b/ubi/obmc-flash-bios-enable-clearvolatile@.service
@@ -1,5 +1,6 @@
 [Unit]
 Description=Enable the clearing of the Volatile PNOR partitions in host%I
+After=obmc-host-reset-running@%i.target
 Wants=mapper-wait@-org-open_power-control-volatile.service
 After=mapper-wait@-org-open_power-control-volatile.service
 Before=obmc-flash-bios-check-clearvolatile@%i.service