blob: bdadc302ae4a404a698cee7fcdd042e1b3f7976e [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
6Before=obmc-flash-bios-check-clearvolatile@%i.service
7ConditionPathExists=!/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"
13SyslogIdentifier=obmc-flash-bios-enable-clearvolatile
14
15[Install]
16RequiredBy=obmc-host-start@%i.target