Skip to main content
Version: 0.15.1

Choosing the image

The layer builds Yoke alone in an image of each form: the runtime, the files the init system is given, and nothing an application adds. The form is chosen by a file of its own, added after the machine's on kas's command line; the images are the smallest the Yocto Project builds, with Yoke in them.

Name the form and its image, each in a variable of the shell, as the machine was: the lines below print nothing, and the next page's commands read them as $form and $image. In a new shell, type them again.

meta-yoke/kas/application.yml builds yoke-image: an account, apps, that hosts the applications. It may install them, being in the group yoke-apps; it lingers, so its user manager runs at boot with nobody signed in; and its guardian's unit, yoke-guardian.service, is enabled, so the guardian runs at every boot and brings up every instance whose record wants it running. No application is installed: one is installed into the account afterwards, as shipping it does.

form=application
image=yoke-image
The image holdsFor
yoke-core, yokethe Core, and the manager the account works with
yoke-guardianthe guardian, which the account's user manager starts
yoke-packagingthe units and the configuration the init system is given
yoke-hostthe account, its lingering, and its guardian's unit enabled

Neither image holds the tools of a workstation, yoke-compose and yoke-conformance, which build and check an application and have nothing to do on a device.

Both images are starting points, not products: root signs in on the console with no password. That is what lets you look inside the image on the next page. An image for a device in the field is your own, built from your own layer, with the packages the form needs (the layer).