blob: fe1a1a5024e248e8e4ed56dc8e564d2dbf24bc22 [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
Andrew Geisslerbe20e872021-03-30 19:20:53 -05007Conflicts=obmc-chassis-poweroff@%i.target
Adriana Kobylak10e915a2019-05-31 13:25:36 -05008ConditionPathExists=!/run/openbmc/host@%i-on
9
10[Service]
11Type=oneshot
Andrew Geisslerbe20e872021-03-30 19:20:53 -050012RemainAfterExit=yes
Adriana Kobylak10e915a2019-05-31 13:25:36 -050013ExecStart=/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 -050014SyslogIdentifier=obmc-vpnor-enable-clearvolatile
Adriana Kobylak10e915a2019-05-31 13:25:36 -050015
16[Install]
Andrew Geissler67dbb252023-05-08 16:10:41 -050017#RequiredBy=obmc-host-start@%i.target