diff options
| author | Adriana Kobylak <anoo@us.ibm.com> | 2019-05-31 13:25:36 -0500 |
|---|---|---|
| committer | Adriana Kobylak <anoo@us.ibm.com> | 2019-06-21 10:07:04 -0500 |
| commit | 10e915abf1bd31d8b1dae8d01c731ac8dd76c7c0 (patch) | |
| tree | 692c6eea5cbce78bbfd4837120ae203e708d4503 /ubi/obmc-flash-bios-enable-clearvolatile@.service | |
| parent | 851bc064b23c0fcb9c19be30948d1e4f5ec0253a (diff) | |
| download | openpower-pnor-code-mgmt-10e915abf1bd31d8b1dae8d01c731ac8dd76c7c0.tar.gz openpower-pnor-code-mgmt-10e915abf1bd31d8b1dae8d01c731ac8dd76c7c0.zip | |
Move script and systemd service files into repo
Move the obmc-flash-bios script and systemd service files from
openbmc/openbmc to the local repo.
Tested: PNOR code update was successful on witherspoon.
Change-Id: Ibb7adba0638b8205173cb0ec4d4d61f2aeb6ce28
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'ubi/obmc-flash-bios-enable-clearvolatile@.service')
| -rw-r--r-- | ubi/obmc-flash-bios-enable-clearvolatile@.service | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ubi/obmc-flash-bios-enable-clearvolatile@.service b/ubi/obmc-flash-bios-enable-clearvolatile@.service new file mode 100644 index 000000000..6fe05c7ae --- /dev/null +++ b/ubi/obmc-flash-bios-enable-clearvolatile@.service @@ -0,0 +1,14 @@ +[Unit] +Description=Enable the clearing of the Volatile PNOR partitions in host%I +After=mapper-wait@-org-open_power-control-volatile.service +Before=obmc-flash-bios-check-clearvolatile@%i.service +ConditionPathExists=!/run/openbmc/host@%i-on + +[Service] +Type=oneshot +RemainAfterExit=no +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" +SyslogIdentifier=obmc-flash-bios-enable-clearvolatile + +[Install] +RequiredBy=obmc-host-start@%i.target |

