summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremias Cordoba <js.cordoba8321@gmail.com>2019-10-15 16:21:42 -0700
committerLaurent Bonnans <laurent.bonnans@here.com>2019-10-29 17:07:14 +0100
commitb1ee116da9eb279991ce61d8114fa0354b45b35d (patch)
tree573ed0a6f10d39b5dcc4ac2124a9c0f04cdf5563
parent0817c87667e67aa40a2e07ad8b15f17c74927e2b (diff)
downloadmeta-updater-b1ee116da9eb279991ce61d8114fa0354b45b35d.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.bbclass3
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