Michael Tritz | eee4542 | 2018-03-13 16:53:15 -0500 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Enable the clearing of the Volatile PNOR partitions in host%i |
| 3 | After=mapper-wait@-org-open_power-control-volatile.service |
Matt Spinler | e9248ec | 2018-06-29 13:52:12 -0500 | [diff] [blame] | 4 | Before=obmc-flash-bios-check-clearvolatile@%i.service |
Michael Tritz | eee4542 | 2018-03-13 16:53:15 -0500 | [diff] [blame] | 5 | ConditionPathExists=!/run/openbmc/host@%i-on |
| 6 | |
| 7 | [Service] |
| 8 | Type=oneshot |
| 9 | RemainAfterExit=no |
| 10 | 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" |
| 11 | SyslogIdentifier=obmc-flash-bios-enable-clearvolatile |
| 12 | |
| 13 | [Install] |
| 14 | RequiredBy=obmc-host-start@%i.target |