diff options
author | Luka Pivk <luka.pivk@toradex.com> | 2018-10-04 10:39:31 +0200 |
---|---|---|
committer | Lucien Mueller <lucien.mueller@netmodule.com> | 2018-11-05 08:37:33 +0100 |
commit | 90908710fe16097128c084bc6e1c2321389292f1 (patch) | |
tree | ba47149e9d5d63983b7d32232423eb08171f8e88 | |
parent | fdbf88415985ac4543bdf8737cc4607e489fa04f (diff) | |
download | meta-updater-90908710fe16097128c084bc6e1c2321389292f1.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 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass index 95d1b59..604bac2 100644 --- a/classes/image_types_ostree.bbclass +++ b/classes/image_types_ostree.bbclass | |||
@@ -15,6 +15,9 @@ RAMDISK_EXT ?= ".${OSTREE_INITRAMFS_FSTYPES}" | |||
15 | 15 | ||
16 | OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}" | 16 | OSTREE_KERNEL ??= "${KERNEL_IMAGETYPE}" |
17 | 17 | ||
18 | OSTREE_COMMIT_SUBJECT ??= "Commit-id: ${IMAGE_NAME}" | ||
19 | OSTREE_COMMIT_BODY ??= "" | ||
20 | |||
18 | export SYSTEMD_USED = "${@oe.utils.ifelse(d.getVar('VIRTUAL-RUNTIME_init_manager', True) == 'systemd', 'true', '')}" | 21 | export SYSTEMD_USED = "${@oe.utils.ifelse(d.getVar('VIRTUAL-RUNTIME_init_manager', True) == 'systemd', 'true', '')}" |
19 | 22 | ||
20 | IMAGE_CMD_ostree () { | 23 | IMAGE_CMD_ostree () { |
@@ -160,8 +163,9 @@ IMAGE_CMD_ostree () { | |||
160 | --tree=dir=${OSTREE_ROOTFS} \ | 163 | --tree=dir=${OSTREE_ROOTFS} \ |
161 | --skip-if-unchanged \ | 164 | --skip-if-unchanged \ |
162 | --branch=${OSTREE_BRANCHNAME} \ | 165 | --branch=${OSTREE_BRANCHNAME} \ |
163 | --subject="Commit-id: ${IMAGE_NAME}" | 166 | --subject="${OSTREE_COMMIT_SUBJECT}" \ |
164 | 167 | --body="${OSTREE_COMMIT_BODY}" | |
168 | |||
165 | rm -rf ${OSTREE_ROOTFS} | 169 | rm -rf ${OSTREE_ROOTFS} |
166 | } | 170 | } |
167 | 171 | ||