1bbb5e3beSAdriana Kobylak[Unit]
2bbb5e3beSAdriana KobylakDescription=Enable the clearing of the Volatile PNOR partitions in host%I
3bbb5e3beSAdriana KobylakAfter=obmc-host-reset-running@%i.target
4bbb5e3beSAdriana KobylakWants=mapper-wait@-org-open_power-control-volatile.service
5bbb5e3beSAdriana KobylakAfter=mapper-wait@-org-open_power-control-volatile.service
6bbb5e3beSAdriana KobylakBefore=obmc-vpnor-check-clearvolatile@%i.service
7be20e872SAndrew GeisslerConflicts=obmc-chassis-poweroff@%i.target
8bbb5e3beSAdriana KobylakConditionPathExists=!/run/openbmc/host@%i-on
9bbb5e3beSAdriana Kobylak
10bbb5e3beSAdriana Kobylak[Service]
11bbb5e3beSAdriana KobylakType=oneshot
12be20e872SAndrew GeisslerRemainAfterExit=yes
13bbb5e3beSAdriana KobylakExecStart=/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"
14bbb5e3beSAdriana KobylakSyslogIdentifier=obmc-vpnor-enable-clearvolatile
15bbb5e3beSAdriana Kobylak
16bbb5e3beSAdriana Kobylak[Install]
17*67dbb254SAndrew Geissler#RequiredBy=obmc-host-start@%i.target
18