diff options
author | Saqib Khan <khansa@us.ibm.com> | 2017-07-29 11:27:27 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-08-01 13:03:32 +0000 |
commit | 6316a540d0e5f99fbff56fae3ad2e2a6cfe20407 (patch) | |
tree | 7754d5c3f94b9848338b79d1f6d3d8aa01cbcfde /meta-openbmc-machines/meta-openpower | |
parent | 80caf06c9c8f93ab82f0d98811ea095d6a519698 (diff) | |
download | talos-openbmc-6316a540d0e5f99fbff56fae3ad2e2a6cfe20407.tar.gz talos-openbmc-6316a540d0e5f99fbff56fae3ad2e2a6cfe20407.zip |
PNOR: Create service file to remove read only UBI volumes
- A template service file that takes the version Id and
removes the pnor-ro-<versionId> volumes. This can be
used by the Object.Delete interface implementation to
remove a software version.
Change-Id: Ife7763825d947e81790d23a436ffd8c9e6762b28
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
Diffstat (limited to 'meta-openbmc-machines/meta-openpower')
2 files changed, 10 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager.bb b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager.bb index 1aacf2881..65c9307a2 100644 --- a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager.bb +++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager.bb @@ -43,6 +43,7 @@ SYSTEMD_SERVICE_${PN} += " \ obmc-flash-bios-ubiattach.service \ obmc-flash-bios-ubimount@.service \ obmc-flash-bios-ubiumount-prsv.service \ + obmc-flash-bios-ubiumount-ro@.service \ obmc-flash-bios-ubiumount-rw@.service \ obmc-flash-bios-squashfsmount@.service \ obmc-flash-bios-ubiremount.service \ diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios-ubiumount-ro@.service b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios-ubiumount-ro@.service new file mode 100644 index 000000000..acf1931d2 --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios-ubiumount-ro@.service @@ -0,0 +1,9 @@ +[Unit] +Description=Remove UBIFS volume pnor-ro-%I +Wants=obmc-flash-bios-ubiattach.service +After=obmc-flash-bios-ubiattach.service + +[Service] +Type=oneshot +RemainAfterExit=no +ExecStart={sbindir}/obmc-flash-bios ubiumount pnor-ro-%i |