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 |
Andrew Geissler | be20e87 | 2021-03-30 19:20:53 -0500 | [diff] [blame] | 7 | Conflicts=obmc-chassis-poweroff@%i.target |
Adriana Kobylak | 10e915a | 2019-05-31 13:25:36 -0500 | [diff] [blame] | 8 | ConditionPathExists=!/run/openbmc/host@%i-on |
| 9 | |
| 10 | [Service] |
| 11 | Type=oneshot |
Andrew Geissler | be20e87 | 2021-03-30 19:20:53 -0500 | [diff] [blame] | 12 | RemainAfterExit=yes |
Adriana Kobylak | 10e915a | 2019-05-31 13:25:36 -0500 | [diff] [blame] | 13 | 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] | 14 | SyslogIdentifier=obmc-vpnor-enable-clearvolatile |
Adriana Kobylak | 10e915a | 2019-05-31 13:25:36 -0500 | [diff] [blame] | 15 | |
| 16 | [Install] |
| 17 | RequiredBy=obmc-host-start@%i.target |