Adriana Kobylak | 10e915a | 2019-05-31 13:25:36 -0500 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Enable the clearing of the Volatile PNOR partitions in host%I |
Andrew Geissler | ad5b73c | 2020-07-09 10:39:24 -0500 | [diff] [blame^] | 3 | Wants=mapper-wait@-org-open_power-control-volatile.service |
Adriana Kobylak | 10e915a | 2019-05-31 13:25:36 -0500 | [diff] [blame] | 4 | After=mapper-wait@-org-open_power-control-volatile.service |
| 5 | Before=obmc-flash-bios-check-clearvolatile@%i.service |
| 6 | ConditionPathExists=!/run/openbmc/host@%i-on |
| 7 | |
| 8 | [Service] |
| 9 | Type=oneshot |
| 10 | RemainAfterExit=no |
| 11 | 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" |
| 12 | SyslogIdentifier=obmc-flash-bios-enable-clearvolatile |
| 13 | |
| 14 | [Install] |
| 15 | RequiredBy=obmc-host-start@%i.target |