summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcajun-rat <phil@advancedtelematic.com>2018-04-23 17:20:29 +0200
committerGitHub <noreply@github.com>2018-04-23 17:20:29 +0200
commitb7cc58bcbcc712d5403572d071c3139cd47d5d4c (patch)
tree3906596a5ac6722f449771135784d1107f8b8acd
parent4e9ca8c71bc8732b0121ac18a87d89f8db395e59 (diff)
parenta8449cde4b81fa822e3474b88c2ee9bef0067d99 (diff)
downloadmeta-updater-b7cc58bcbcc712d5403572d071c3139cd47d5d4c.tar.gz
Merge pull request #300 from rsalveti/installed_versions
Check for custom target version for installed_versions
-rw-r--r--classes/image_types_ota.bbclass6
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