blob: bad59b1262ba46cadb6742c7fa4c57e8a2ea79b2 [file] [log] [blame]
Adriana Kobylak10e915a2019-05-31 13:25:36 -05001[Unit]
2Description=Enable the clearing of the Volatile PNOR partitions in host%I
Andrew Geissler0a5e2072020-07-09 14:23:06 -05003After=obmc-host-reset-running@%i.target
Andrew Geisslerad5b73c2020-07-09 10:39:24 -05004Wants=mapper-wait@-org-open_power-control-volatile.service
Adriana Kobylak10e915a2019-05-31 13:25:36 -05005After=mapper-wait@-org-open_power-control-volatile.service
Adriana Kobylakbbb5e3b2020-06-19 10:22:13 -05006Before=obmc-vpnor-check-clearvolatile@%i.service
Adriana Kobylak10e915a2019-05-31 13:25:36 -05007ConditionPathExists=!/run/openbmc/host@%i-on
8
9[Service]
10Type=oneshot
11RemainAfterExit=no
12ExecStart=/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"
Adriana Kobylakbbb5e3b2020-06-19 10:22:13 -050013SyslogIdentifier=obmc-vpnor-enable-clearvolatile
Adriana Kobylak10e915a2019-05-31 13:25:36 -050014
15[Install]
16RequiredBy=obmc-host-start@%i.target