diff options
author | Phil Wise <phil@advancedtelematic.com> | 2017-05-24 16:14:26 +0200 |
---|---|---|
committer | Phil Wise <phil@advancedtelematic.com> | 2017-05-24 17:10:17 +0200 |
commit | 1c53ba362775c6f658406ab3f2333cdee260de79 (patch) | |
tree | 7555665ecc38743f0a9dcaf899ad6e89d8eaf701 /classes | |
parent | 0bba62210d1f4d91b1e36f13d5669b606a8fabc6 (diff) | |
download | meta-updater-1c53ba362775c6f658406ab3f2333cdee260de79.tar.gz |
Support Aktualizr in manual-provisioning mode
Aktualizr currently supports OSTree updates in non-autoprovisioned mode. Add a
systemd service to run it in that mode. It uses the same location for the
config file as rvi-sota-client (/sysroot/boot/sota.toml)
Also, the aktualizr recipe is reformatted according to
meta-openembedded/contrib/oe-stylize.py (which follows the OE styleguide)
Diffstat (limited to 'classes')
-rw-r--r-- | classes/image_types_ota.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass index cb71899..306a3c0 100644 --- a/classes/image_types_ota.bbclass +++ b/classes/image_types_ota.bbclass | |||
@@ -99,6 +99,8 @@ IMAGE_CMD_otaimg () { | |||
99 | tar --xattrs --xattrs-include='*' -C ${HOME_TMP} -xf ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.rootfs.ostree.tar.bz2 ./usr/homedirs ./var/sota || true | 99 | tar --xattrs --xattrs-include='*' -C ${HOME_TMP} -xf ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.rootfs.ostree.tar.bz2 ./usr/homedirs ./var/sota || true |
100 | mv ${HOME_TMP}/var/sota ${PHYS_SYSROOT}/ostree/deploy/${OSTREE_OSNAME}/var/ || true | 100 | mv ${HOME_TMP}/var/sota ${PHYS_SYSROOT}/ostree/deploy/${OSTREE_OSNAME}/var/ || true |
101 | mv ${HOME_TMP}/usr/homedirs/home ${PHYS_SYSROOT}/ || true | 101 | mv ${HOME_TMP}/usr/homedirs/home ${PHYS_SYSROOT}/ || true |
102 | # Ensure that /var/local exists (AGL symlinks /usr/local to /var/local) | ||
103 | install -d ${PHYS_SYSROOT}/ostree/deploy/${OSTREE_OSNAME}/var/local | ||
102 | rm -rf ${HOME_TMP} | 104 | rm -rf ${HOME_TMP} |
103 | 105 | ||
104 | # Calculate image type | 106 | # Calculate image type |