diff options
author | Anton Gerasimov <anton.gerasimov@here.com> | 2018-09-04 16:56:01 +0200 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2018-10-30 13:39:51 +0100 |
commit | 824e5a7c9c4241d0f32ee777768b00249b47ad8a (patch) | |
tree | 5789b2fbf595b5de8da0848a828d131abee761a5 /classes/image_types_ostree.bbclass | |
parent | 0efe3823ea039213a1640d469d35d56fc68be60f (diff) | |
download | meta-updater-824e5a7c9c4241d0f32ee777768b00249b47ad8a.tar.gz |
Provide example for setting UPTANE target version automatically
Diffstat (limited to 'classes/image_types_ostree.bbclass')
-rw-r--r-- | classes/image_types_ostree.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass index 3bf2d0e..bcbb648 100644 --- a/classes/image_types_ostree.bbclass +++ b/classes/image_types_ostree.bbclass | |||
@@ -193,7 +193,7 @@ IMAGE_CMD_ostreepush () { | |||
193 | } | 193 | } |
194 | 194 | ||
195 | IMAGE_TYPEDEP_garagesign = "ostreepush" | 195 | IMAGE_TYPEDEP_garagesign = "ostreepush" |
196 | do_image_garage_sign[depends] += "aktualizr-native:do_populate_sysroot" | 196 | do_image_garagesign[depends] += "aktualizr-native:do_populate_sysroot" |
197 | IMAGE_CMD_garagesign () { | 197 | IMAGE_CMD_garagesign () { |
198 | if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then | 198 | if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then |
199 | # if credentials are issued by a server that doesn't support offline signing, exit silently | 199 | # if credentials are issued by a server that doesn't support offline signing, exit silently |
@@ -219,6 +219,8 @@ IMAGE_CMD_garagesign () { | |||
219 | target_version=${ostree_target_hash} | 219 | target_version=${ostree_target_hash} |
220 | if [ -n "${GARAGE_TARGET_VERSION}" ]; then | 220 | if [ -n "${GARAGE_TARGET_VERSION}" ]; then |
221 | target_version=${GARAGE_TARGET_VERSION} | 221 | target_version=${GARAGE_TARGET_VERSION} |
222 | elif [ -e "${STAGING_DATADIR_NATIVE}/target_version" ]; then | ||
223 | target_version=$(cat "${STAGING_DATADIR_NATIVE}/target_version") | ||
222 | fi | 224 | fi |
223 | 225 | ||
224 | # Push may fail due to race condition when multiple build machines try to push simultaneously | 226 | # Push may fail due to race condition when multiple build machines try to push simultaneously |