Skip to main content
Version: 0.17.0

Upgrading

A newer Yoke reaches an image through a newer revision of the layer. Each revision of meta-yoke builds one release of Yoke, and names the commits of the other layers it is tested with; moving the layer moves both, and the build that follows takes from the shared state everything that did not change, and builds the rest.

Take the newer revision, the newest on main or one you name:

git -C meta-yoke pull

Build again, with the same command as before, and with KAS_BUILD_DIR, DL_DIR and SSTATE_DIR set as they were. kas checks the other layers out at the commits the new revision names:

kas build meta-yoke/kas/$machine.yml:meta-yoke/kas/$form.yml

Then boot the new image in place of the old one, as the first time.

The new image starts from nothing. An image is written as a whole, so everything the old one gathered while it ran is gone with it: in the application form, the applications installed into the account and their instances; in the service form, the deployment's store under /var/lib/yoke/. The layer does not keep a partition for data across images. A device that has to keep its data needs one, mounted where the form keeps its state, and an image written beside the running one; how is the integrator's to decide, with the tools the Yocto Project offers for updating a device in the field.