summaryrefslogtreecommitdiffstats
path: root/classes/image_types_ota.bbclass
diff options
context:
space:
mode:
authorAnton Gerasimov <anton.gerasimov@here.com>2018-01-19 16:38:13 +0100
committerAnton Gerasimov <anton.gerasimov@here.com>2018-01-19 16:40:02 +0100
commit9e6d437d73aa990aff85d2cf456b77367be01920 (patch)
treea28a78727f7fea13abe6cf3249dc9c14865b91f4 /classes/image_types_ota.bbclass
parentde0d91f6a870494963c67c70460999927e8d9e1f (diff)
downloadmeta-updater-9e6d437d73aa990aff85d2cf456b77367be01920.tar.gz
Deploy initial primary version information
Diffstat (limited to 'classes/image_types_ota.bbclass')
-rw-r--r--classes/image_types_ota.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass
index 5dc4811..be9a017 100644
--- a/classes/image_types_ota.bbclass
+++ b/classes/image_types_ota.bbclass
@@ -53,6 +53,8 @@ export OSTREE_BRANCHNAME
53export OSTREE_REPO 53export OSTREE_REPO
54export OSTREE_BOOTLOADER 54export OSTREE_BOOTLOADER
55 55
56export GARAGE_TARGET_NAME
57
56IMAGE_CMD_otaimg () { 58IMAGE_CMD_otaimg () {
57 if ${@bb.utils.contains('IMAGE_FSTYPES', 'otaimg', 'true', 'false', d)}; then 59 if ${@bb.utils.contains('IMAGE_FSTYPES', 'otaimg', 'true', 'false', d)}; then
58 if [ -z "$OSTREE_REPO" ]; then 60 if [ -z "$OSTREE_REPO" ]; then
@@ -106,6 +108,9 @@ IMAGE_CMD_otaimg () {
106 mv ${HOME_TMP}/usr/homedirs/home ${PHYS_SYSROOT}/ || true 108 mv ${HOME_TMP}/usr/homedirs/home ${PHYS_SYSROOT}/ || true
107 # Ensure that /var/local exists (AGL symlinks /usr/local to /var/local) 109 # Ensure that /var/local exists (AGL symlinks /usr/local to /var/local)
108 install -d ${PHYS_SYSROOT}/ostree/deploy/${OSTREE_OSNAME}/var/local 110 install -d ${PHYS_SYSROOT}/ostree/deploy/${OSTREE_OSNAME}/var/local
111 # Set package version for the first deployment
112 echo "{\"${ostree_target_hash}\":\"${GARAGE_TARGET_NAME}-${ostree_target_hash}\"}" > ${PHYS_SYSROOT}/ostree/deploy/${OSTREE_OSNAME}/var/sota/installed_versions
113
109 rm -rf ${HOME_TMP} 114 rm -rf ${HOME_TMP}
110 115
111 # Calculate image type 116 # Calculate image type