Added support to set custom commit subject and body
Use OSTREE_COMMIT_BODY write custom text to ostree body
Use OSTREE_COMMIT_SUBJECT to write custom subject
@@ -14,6 +14,9 @@ export GARAGE_TARGET_NAME
OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}"
+OSTREE_COMMIT_SUBJECT ??= "Commit-id: ${IMAGE_NAME}"
+OSTREE_COMMIT_BODY ??= ""
+
export SYSTEMD_USED = "${@oe.utils.ifelse(d.getVar('VIRTUAL-RUNTIME_init_manager', True) == 'systemd', 'true', '')}"
IMAGE_CMD_ostree () {
@@ -160,7 +163,8 @@ IMAGE_CMD_ostree () {
--tree=dir=${OSTREE_ROOTFS} \
--skip-if-unchanged \
--branch=${OSTREE_BRANCHNAME} \
- --subject="Commit-id: ${IMAGE_NAME}"
+ --subject="${OSTREE_COMMIT_SUBJECT}" \
+ --body="${OSTREE_COMMIT_BODY}"
rm -rf ${OSTREE_ROOTFS}
}
