diff options
| author | Ricardo Salveti <ricardo@opensourcefoundries.com> | 2018-04-12 15:31:24 -0300 |
|---|---|---|
| committer | Ricardo Salveti <ricardo@opensourcefoundries.com> | 2018-04-18 23:08:43 -0300 |
| commit | a8449cde4b81fa822e3474b88c2ee9bef0067d99 (patch) | |
| tree | 3906596a5ac6722f449771135784d1107f8b8acd /classes | |
| parent | 4e9ca8c71bc8732b0121ac18a87d89f8db395e59 (diff) | |
| download | meta-updater-a8449cde4b81fa822e3474b88c2ee9bef0067d99.tar.gz | |
Check for custom target version for installed_versions
Make sure to use the custom target version when creating
installed_versions if defined by the user.
Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
Diffstat (limited to 'classes')
| -rw-r--r-- | classes/image_types_ota.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass index b14faf3..6b93d57 100644 --- a/classes/image_types_ota.bbclass +++ b/classes/image_types_ota.bbclass | |||
| @@ -107,7 +107,11 @@ IMAGE_CMD_otaimg () { | |||
| 107 | # Ensure that /var/local exists (AGL symlinks /usr/local to /var/local) | 107 | # Ensure that /var/local exists (AGL symlinks /usr/local to /var/local) |
| 108 | install -d ${PHYS_SYSROOT}/ostree/deploy/${OSTREE_OSNAME}/var/local | 108 | install -d ${PHYS_SYSROOT}/ostree/deploy/${OSTREE_OSNAME}/var/local |
| 109 | # Set package version for the first deployment | 109 | # Set package version for the first deployment |
| 110 | echo "{\"${ostree_target_hash}\":\"${GARAGE_TARGET_NAME}-${ostree_target_hash}\"}" > ${PHYS_SYSROOT}/ostree/deploy/${OSTREE_OSNAME}/var/sota/installed_versions | 110 | target_version=${ostree_target_hash} |
| 111 | if [ -n "${GARAGE_TARGET_VERSION}" ]; then | ||
| 112 | target_version=${GARAGE_TARGET_VERSION} | ||
| 113 | fi | ||
| 114 | echo "{\"${ostree_target_hash}\":\"${GARAGE_TARGET_NAME}-${target_version}\"}" > ${PHYS_SYSROOT}/ostree/deploy/${OSTREE_OSNAME}/var/sota/installed_versions | ||
| 111 | 115 | ||
| 112 | rm -rf ${HOME_TMP} | 116 | rm -rf ${HOME_TMP} |
| 113 | 117 | ||
