diff options
author | Luka Pivk <luka.pivk@toradex.com> | 2018-10-04 10:39:31 +0200 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2019-02-20 09:36:16 +0100 |
commit | 9626a9d44f212f983bf33d6367f169d18411c8a8 (patch) | |
tree | 5f43ed83e0c87651f5d7b636f79bfe4325e51ad3 | |
parent | 3882d727861d4a83e09fdb22e2ecb0a408aac0eb (diff) | |
download | meta-updater-9626a9d44f212f983bf33d6367f169d18411c8a8.tar.gz |
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
Signed-off-by: Luka Pivk <luka.pivk@toradex.com>
-rw-r--r-- | classes/image_types_ostree.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass index 22ae123..c2ea6fc 100644 --- a/classes/image_types_ostree.bbclass +++ b/classes/image_types_ostree.bbclass | |||
@@ -16,6 +16,9 @@ RAMDISK_EXT ?= ".${OSTREE_INITRAMFS_FSTYPES}" | |||
16 | 16 | ||
17 | OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}" | 17 | OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}" |
18 | 18 | ||
19 | OSTREE_COMMIT_SUBJECT ??= "Commit-id: ${IMAGE_NAME}" | ||
20 | OSTREE_COMMIT_BODY ??= "" | ||
21 | |||
19 | export SYSTEMD_USED = "${@oe.utils.ifelse(d.getVar('VIRTUAL-RUNTIME_init_manager', True) == 'systemd', 'true', '')}" | 22 | export SYSTEMD_USED = "${@oe.utils.ifelse(d.getVar('VIRTUAL-RUNTIME_init_manager', True) == 'systemd', 'true', '')}" |
20 | 23 | ||
21 | IMAGE_CMD_ostree () { | 24 | IMAGE_CMD_ostree () { |
@@ -156,7 +159,8 @@ IMAGE_CMD_ostree () { | |||
156 | --tree=dir=${OSTREE_ROOTFS} \ | 159 | --tree=dir=${OSTREE_ROOTFS} \ |
157 | --skip-if-unchanged \ | 160 | --skip-if-unchanged \ |
158 | --branch=${OSTREE_BRANCHNAME} \ | 161 | --branch=${OSTREE_BRANCHNAME} \ |
159 | --subject="Commit-id: ${IMAGE_NAME}" | 162 | --subject="${OSTREE_COMMIT_SUBJECT}" \ |
163 | --body="${OSTREE_COMMIT_BODY}" | ||
160 | 164 | ||
161 | rm -rf ${OSTREE_ROOTFS} | 165 | rm -rf ${OSTREE_ROOTFS} |
162 | } | 166 | } |