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 | 0a5e207 | 2020-07-09 14:23:06 -0500 | [diff] [blame] | 3 | After=obmc-host-reset-running@%i.target |
Andrew Geissler | ad5b73c | 2020-07-09 10:39:24 -0500 | [diff] [blame] | 4 | Wants=mapper-wait@-org-open_power-control-volatile.service |
Adriana Kobylak | 10e915a | 2019-05-31 13:25:36 -0500 | [diff] [blame] | 5 | After=mapper-wait@-org-open_power-control-volatile.service |
Adriana Kobylak | bbb5e3b | 2020-06-19 10:22:13 -0500 | [diff] [blame] | 6 | Before=obmc-vpnor-check-clearvolatile@%i.service |
Adriana Kobylak | 10e915a | 2019-05-31 13:25:36 -0500 | [diff] [blame] | 7 | ConditionPathExists=!/run/openbmc/host@%i-on |
| 8 | |
| 9 | [Service] |
| 10 | Type=oneshot |
| 11 | RemainAfterExit=no |
| 12 | 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" |
Adriana Kobylak | bbb5e3b | 2020-06-19 10:22:13 -0500 | [diff] [blame] | 13 | SyslogIdentifier=obmc-vpnor-enable-clearvolatile |
Adriana Kobylak | 10e915a | 2019-05-31 13:25:36 -0500 | [diff] [blame] | 14 | |
| 15 | [Install] |
| 16 | RequiredBy=obmc-host-start@%i.target |