diff options
author | Jeremias Cordoba <js.cordoba8321@gmail.com> | 2019-10-15 16:21:42 -0700 |
---|---|---|
committer | Laurent Bonnans <laurent.bonnans@here.com> | 2019-10-29 17:10:05 +0100 |
commit | d6624c6897c1ae65433e8a949221590084a62e1e (patch) | |
tree | 2ce944b351a3f9cb436ab8da6915dffeafa221e5 | |
parent | d2c460685d6cc5373f7a98609521e6deb6e11d4e (diff) | |
download | meta-updater-d6624c6897c1ae65433e8a949221590084a62e1e.tar.gz |
image_types_ostree: Fix OSTree ref-bindings
The command "ostree refs --create" creates a new ref that points to a pre-existing commit hash.
This does not add this new ref to the ref-bindings metadata in OSTree.
The missing metadata leads to OSTree verifcation failures when working with the new ref.
Fix this by adding the "--bind-ref" option to "ostree commit" which adds the needed
ref-binding metadata.
Signed-off-by: Jeremias Cordoba <js.cordoba8321@gmail.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 795e01b..7ffe99d 100644 --- a/classes/image_types_ostree.bbclass +++ b/classes/image_types_ostree.bbclass | |||
@@ -168,7 +168,8 @@ IMAGE_CMD_ostreecommit () { | |||
168 | --skip-if-unchanged \ | 168 | --skip-if-unchanged \ |
169 | --branch=${OSTREE_BRANCHNAME} \ | 169 | --branch=${OSTREE_BRANCHNAME} \ |
170 | --subject="${OSTREE_COMMIT_SUBJECT}" \ | 170 | --subject="${OSTREE_COMMIT_SUBJECT}" \ |
171 | --body="${OSTREE_COMMIT_BODY}" | 171 | --body="${OSTREE_COMMIT_BODY}" \ |
172 | --bind-ref="${OSTREE_BRANCHNAME}-${IMAGE_BASENAME}" | ||
172 | 173 | ||
173 | if [ "${OSTREE_UPDATE_SUMMARY}" = "1" ]; then | 174 | if [ "${OSTREE_UPDATE_SUMMARY}" = "1" ]; then |
174 | ostree --repo=${OSTREE_REPO} summary -u | 175 | ostree --repo=${OSTREE_REPO} summary -u |