vpnor: Move clearvolatile services to vpnor

The clearvolatile services were originally in the ubi layout, but
the functionality is purely for vpnor, not tied to a filesystem
layout. Move them to the vpnor layer where non-UBI layouts that use
virtual pnor such as eMMC have this functionality.

Tested: Verified on witherspoon that the renamed services were
        included in the image and ran during a power on.

Change-Id: I6e9e9e4f5a8a7690a46872ee2fdc0fc96e621482
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/vpnor/obmc-vpnor-enable-clearvolatile@.service b/vpnor/obmc-vpnor-enable-clearvolatile@.service
new file mode 100644
index 0000000..bad59b1
--- /dev/null
+++ b/vpnor/obmc-vpnor-enable-clearvolatile@.service
@@ -0,0 +1,16 @@
+[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-vpnor-check-clearvolatile@%i.service
+ConditionPathExists=!/run/openbmc/host@%i-on
+
+[Service]
+Type=oneshot
+RemainAfterExit=no
+ExecStart=/bin/sh -c "busctl set-property `mapper get-service /org/open_power/control/volatile` /org/open_power/control/volatile xyz.openbmc_project.Object.Enable Enabled b true"
+SyslogIdentifier=obmc-vpnor-enable-clearvolatile
+
+[Install]
+RequiredBy=obmc-host-start@%i.target