summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorLuka Pivk <luka.pivk@toradex.com>2018-10-11 20:31:40 +0200
committerLucien Mueller <lucien.mueller@netmodule.com>2018-11-05 09:55:29 +0100
commite98d6f2fe469cd8e6380d45fdb17e81bc02ba2a3 (patch)
tree30d6404c2c3e474028e769ea254a4662e2b22ac5 /classes
parent90908710fe16097128c084bc6e1c2321389292f1 (diff)
downloadmeta-updater-e98d6f2fe469cd8e6380d45fdb17e81bc02ba2a3.tar.gz
Added support to automatically update ostree summary
Use OSTREE_UPDATE_SUMMARY to automatically update summary after committing to ostree repo Signed-off-by: Luka Pivk <luka.pivk@toradex.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_ostree.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass
index 604bac2..b2eb61d 100644
--- a/classes/image_types_ostree.bbclass
+++ b/classes/image_types_ostree.bbclass
@@ -17,6 +17,7 @@ OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}"
17 17
18OSTREE_COMMIT_SUBJECT ??= "Commit-id: ${IMAGE_NAME}" 18OSTREE_COMMIT_SUBJECT ??= "Commit-id: ${IMAGE_NAME}"
19OSTREE_COMMIT_BODY ??= "" 19OSTREE_COMMIT_BODY ??= ""
20OSTREE_UPDATE_SUMMARY ??= "0"
20 21
21export SYSTEMD_USED = "${@oe.utils.ifelse(d.getVar('VIRTUAL-RUNTIME_init_manager', True) == 'systemd', 'true', '')}" 22export SYSTEMD_USED = "${@oe.utils.ifelse(d.getVar('VIRTUAL-RUNTIME_init_manager', True) == 'systemd', 'true', '')}"
22 23
@@ -165,7 +166,11 @@ IMAGE_CMD_ostree () {
165 --branch=${OSTREE_BRANCHNAME} \ 166 --branch=${OSTREE_BRANCHNAME} \
166 --subject="${OSTREE_COMMIT_SUBJECT}" \ 167 --subject="${OSTREE_COMMIT_SUBJECT}" \
167 --body="${OSTREE_COMMIT_BODY}" 168 --body="${OSTREE_COMMIT_BODY}"
168 169
170 if [ "${OSTREE_UPDATE_SUMMARY}" = "1" ]; then
171 ostree --repo=${OSTREE_REPO} summary -u
172 fi
173
169 rm -rf ${OSTREE_ROOTFS} 174 rm -rf ${OSTREE_ROOTFS}
170} 175}
171 176