diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2020-05-26 16:04:24 +0000 |
---|---|---|
committer | Laurent Bonnans <laurent.bonnans@here.com> | 2020-06-02 12:04:05 +0200 |
commit | b11a2f689c1babe916352e7cff9179343f1bccff (patch) | |
tree | dbbea4fd7da198c656937198ac3c2e316d7f76e6 | |
parent | 37ec9b5467da27cabcd14e3cc56343a28eab2b6f (diff) | |
download | meta-updater-b11a2f689c1babe916352e7cff9179343f1bccff.tar.gz |
image_types_ostree: allow to add layer specific OSTree commit arguments
The OSTree commit command allows to add metadata to the commit. This
might be customized in a distro layer for distribution specific needs.
Allow to pass extra arguments using EXTRA_OSTREE_COMMIT variable
(using a variable named similar to EXTRA_OEMAKE used to pass extra make
arguments).
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
-rw-r--r-- | classes/image_types_ostree.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass index 0c076c8..a569381 100644 --- a/classes/image_types_ostree.bbclass +++ b/classes/image_types_ostree.bbclass | |||
@@ -173,7 +173,8 @@ IMAGE_CMD_ostreecommit () { | |||
173 | --branch=${OSTREE_BRANCHNAME} \ | 173 | --branch=${OSTREE_BRANCHNAME} \ |
174 | --subject="${OSTREE_COMMIT_SUBJECT}" \ | 174 | --subject="${OSTREE_COMMIT_SUBJECT}" \ |
175 | --body="${OSTREE_COMMIT_BODY}" \ | 175 | --body="${OSTREE_COMMIT_BODY}" \ |
176 | --add-metadata-string=version="${OSTREE_COMMIT_VERSION}") | 176 | --add-metadata-string=version="${OSTREE_COMMIT_VERSION}" \ |
177 | ${EXTRA_OSTREE_COMMIT}) | ||
177 | 178 | ||
178 | echo $ostree_target_hash > ${WORKDIR}/ostree_manifest | 179 | echo $ostree_target_hash > ${WORKDIR}/ostree_manifest |
179 | 180 | ||