xref: /openbmc/openpower-pnor-code-mgmt/vpnor/obmc-vpnor-enable-clearvolatile@.service (revision 67dbb254da45755227fbec472737d3506f086afc)
1[Unit]
2Description=Enable the clearing of the Volatile PNOR partitions in host%I
3After=obmc-host-reset-running@%i.target
4Wants=mapper-wait@-org-open_power-control-volatile.service
5After=mapper-wait@-org-open_power-control-volatile.service
6Before=obmc-vpnor-check-clearvolatile@%i.service
7Conflicts=obmc-chassis-poweroff@%i.target
8ConditionPathExists=!/run/openbmc/host@%i-on
9
10[Service]
11Type=oneshot
12RemainAfterExit=yes
13ExecStart=/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"
14SyslogIdentifier=obmc-vpnor-enable-clearvolatile
15
16[Install]
17#RequiredBy=obmc-host-start@%i.target
18