summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_ostree.bbclass11
1 files changed, 10 insertions, 1 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass
index a5d43dc..3bf2d0e 100644
--- a/classes/image_types_ostree.bbclass
+++ b/classes/image_types_ostree.bbclass
@@ -14,6 +14,10 @@ export GARAGE_TARGET_NAME
14 14
15OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}" 15OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}"
16 16
17OSTREE_COMMIT_SUBJECT ??= "Commit-id: ${IMAGE_NAME}"
18OSTREE_COMMIT_BODY ??= ""
19OSTREE_UPDATE_SUMMARY ??= "0"
20
17export SYSTEMD_USED = "${@oe.utils.ifelse(d.getVar('VIRTUAL-RUNTIME_init_manager', True) == 'systemd', 'true', '')}" 21export SYSTEMD_USED = "${@oe.utils.ifelse(d.getVar('VIRTUAL-RUNTIME_init_manager', True) == 'systemd', 'true', '')}"
18 22
19IMAGE_CMD_ostree () { 23IMAGE_CMD_ostree () {
@@ -160,7 +164,12 @@ IMAGE_CMD_ostree () {
160 --tree=dir=${OSTREE_ROOTFS} \ 164 --tree=dir=${OSTREE_ROOTFS} \
161 --skip-if-unchanged \ 165 --skip-if-unchanged \
162 --branch=${OSTREE_BRANCHNAME} \ 166 --branch=${OSTREE_BRANCHNAME} \
163 --subject="Commit-id: ${IMAGE_NAME}" 167 --subject="${OSTREE_COMMIT_SUBJECT}" \
168 --body="${OSTREE_COMMIT_BODY}"
169
170 if [ "${OSTREE_UPDATE_SUMMARY}" = "1" ]; then
171 ostree --repo=${OSTREE_REPO} summary -u
172 fi
164 173
165 rm -rf ${OSTREE_ROOTFS} 174 rm -rf ${OSTREE_ROOTFS}
166} 175}