Images
An image defines the software of a device: it lists the packages and features that the device installs. Scout keeps each image as an image definition file (
.idf) in the folder of its container. Once you publish this folder, devices download the image file and its packages from there for a firmware update, see Publishing a container to devices.
In the Navigation menu, click Software, and then click Images in the Software menu. The page is titled Software images. Below Images, the Software menu shows the container that you work in and its images, together with New image and Import image. The field Search image above the images finds an image by its name.
When you open an image, the image editor shows it in two columns:
| Column | What it shows |
|---|---|
| Defined packages | The packages and features of the image, grouped by category |
| Package library | All packages of the container. Here you add packages to the image and see their details. |
Above the columns, the header shows the file name and the description of the image, its size, the number of its packages and the date of its last change. Marks such as Signed show the state of the image, see Marks of an image.
Creating an image
-
In the Software menu, below Images, select the container.
-
Click New image.The image editor opens with a new image. UniconOS Management Board gives it a name that is still free.
-
To change the name or to add a description, click the pencil icon next to the name. Enter the name and the description, and then click the checkmark or press Enter.The name is also the file name of the image, with the extension
.idf. It can contain only the letters A to Z and a to z, digits,.,_and-. It must start with a letter, a digit or_, and it can have at most 123 characters. -
In the Package library, tick the packages for the image.Scout adds the newest version of the package that fits the OS edition of the image, see Package overview. To use another version, open the list of versions of the package and select the version.
-
In Defined packages, click a package to show its features. Tick or clear them as needed.
-
Click Solve dependencies.Scout adds the packages that your packages need, see Solving dependencies. Then the button changes to Save image.
-
Click Save image.
Scout saves the image and writes its image file, for example
sales.idf, into the container folder.
If Scout can't write the image file yet, it still saves the image and tells you why. For example, the dependency rules of the container may be out of date. Scout writes the file by itself as soon as it has rebuilt the rules.
Solving dependencies
Packages depend on other packages. When you click Solve dependencies, Scout checks the packages of the image against the dependency rules of the container. It adds the packages that are missing and reports the packages that don't fit together, for example packages of different OS editions. For large containers, a solve can take a while. To stop a running solve, click Cancel in the progress message in Defined packages. If a solve takes too long, Scout stops it and asks you to remove some packages.
Scout adds the newest version of a package that fits, even if it belongs to a newer UniconOS version than the packages that you selected. Check the versions in Defined packages before you save the image.
If the solve fails, the message tells you how many conflicts or missing dependencies the image has. Click Details to see each problem with a suggestion, for example to remove a package, to keep only one of several packages, or to import a package that the container doesn't hold yet.
Changing an image
To change an image, open it from the image list, and change its packages and features. To remove a package from the image, click the trash icon next to it in Defined packages. Then click Solve dependencies, and then Save image. To discard your changes, click Cancel.
If you open another image before you have saved your changes, UniconOS Management Board asks what to do with them. Click Save and continue to save them, Discard changes to drop them, or Cancel to stay in the current image.
While you change an image, Scout locks it for other administrators. Another administrator who changes the same image sees that it is being edited and can't save it. They can still save their version as a copy with Save as…. If someone else saved or signed the image after you opened it, UniconOS Management Board doesn't save your changes and offers to reload the image. Reloading shows the current version and discards your unsaved changes.
Further actions for an image
In the image list, each image has a menu. When an image is open, the arrow next to Save image opens a menu with some of the same actions. These are the actions:
| Action | What it does |
|---|---|
| Export or Export image | Downloads the image file (.idf), for example to use the image in another system. An image without packages, or with packages that are missing in the container, can't be exported. |
| Export recovery stick (StickWizz) | Downloads a .stw file with the image, its packages and the newest recovery image (.dd) of the container. Write the file to a USB stick with StickWizz. This works only for containers of UniconOS 7 that hold a recovery image. |
| Duplicate | Saves a copy of the image under a new name. |
| Save as… | Saves the open image, with your changes, under a new name. |
| Sign | Signs the image, see Signing an image. |
| Firmware settings | Shows the values to enter in the Firmware section of the device configuration, so that devices install this image, see Configuring the devices. Available only for a saved image. |
| Delete | Deletes the image and its image file. Devices can then no longer download the image. |
For how to write a recovery stick, see Writing an image to USB (with StickWizz).
To add an existing image file to the container, click Import image, and select the
.idf file. While no image is open, you can also drag the file onto the page.
An image file that is already in the container folder can have a name that UniconOS can't use, for example a name with a space. Software then doesn't publish, sign or export the image under this name. Rename the image, and then enter the new file name in Image file in the device configuration.
Signing an image
A signature lets your devices check that an image hasn't been changed since you signed it. To sign images, the container needs a signing certificate, see Certificates. Without a signing certificate, Sign is greyed out.
-
Make sure that the image is saved.
-
In the image list, open the menu of the image, or click the arrow next to Save image.
-
Click Sign.
-
If the image contains packages that Scout couldn't verify, UniconOS Management Board asks Sign with unverified packages?. To sign the image anyway, click Sign anyway.The signature of the image then lists these packages, but it doesn't cover their content.
Scout writes the signature file, for example
sales.idf.sig, next to the image file, and the image is marked Signed.
If you change a signed image and save it, Scout removes its signature. Sign the image again after each change. A locked image, an image without packages and an image with packages that are missing in the container can't be signed.
By default, devices don't check signatures. For how to make them check, see Checking signatures.
Images held back after a package change
When you save an image, Software remembers the exact content of its package files. If such a package changes in the container folder afterwards, for example because someone replaced the file on the server, Software holds the image back: it takes the image file (
.idf) out of the container folder. Devices then keep their installed image and don't install the changed package. Software usually notices such a change within seconds, at the latest within an hour.
While an image is held back:
-
In the Software menu, a banner above the image list says that images are held back.
-
The image has a red warning icon in the image list. Pointing to the icon shows Held back, a package changed.
-
In the Software library and in the Package library of the image editor, the changed package has a warning icon.
-
Until the change is accepted or the original file is back, you can't sign the image, and you can't export a recovery stick with it.
-
If you save the image, UniconOS Management Board stores your changes but doesn't write the image file.
To release the image, do one of the following:
-
Put the original package file back into the container folder. Software then releases the image by itself within about a minute.
-
Open the image. Under A package changed on the share, compare the values under Approved: and Now on the share:. If the change is intended, click Accept changes. Software takes the packages as they are now in the container folder.
Software then writes the image file again. If the image was saved while it was held back, an administrator with the right Sign images and import certificates must save it again.
To accept changes, you need the right Sign images and import certificates on the container. While an image is held back, only administrators with this right can publish, rename, export or delete it. A package that doesn't match its signature file can't be accepted.
If you add a package under the file name of a package that the container held before, for example a package that you built again, Software treats it as a changed package. The images that use it are held back until someone accepts the change.
Marks of an image
The header of an image shows marks for its state:
| Mark | Meaning |
|---|---|
| Conflicts | Packages of the image don't fit together. Solve the dependencies, and follow the suggestions. |
| Missing packages | The image uses packages that the container no longer holds. Remove them before you save the image. |
| Signed | The image has a signature file that matches it. |
| Locked | The image is read-only. You can export it, but you can't change, copy, sign or delete it. |
| Template | The image was taken over as a template from an earlier image management, for example ELIAS 18. Software has no functions of its own for templates. |