System Updates and Apps, Now Built into Nexigon Agent
Nexigon Agent 0.7 installs Rugix Ctrl and RAUC system updates and manages Rugix Apps itself, replacing the update recipes of nexigon-rugix. It adds maintenance windows, spreads, retries, and checkpoint releases and keeps the same primitives and property protocol. It can also keep the device key in a TPM or other hardware.
- release
- ota-updates
- rugix
- rauc
With version 0.7, Nexigon Agent can itself install system updates with Rugix Ctrl or RAUC and manage application workloads with Rugix Apps. The new integrations let you decide when devices update and keep apps in the state that you configured. They replace the scripts that you previously added to your device image, for example with the recipes of nexigon-rugix. The last section shows how to switch.
The integrations are optional. Like the scripts before them, they build on Nexigon’s primitives: device properties, events, repositories, and commands. You can still build your own update workflow on these primitives with the tools you prefer and integrate it into your applications, for example to let users confirm each update on the device’s display.
System Updates on Your Schedule
The system update integration works with Rugix Ctrl and RAUC. For Rugix Bakery, you enable it with a few lines in Nexigon Agent’s configuration. For Yocto, the meta-nexigon-rugix and meta-nexigon-rauc layers of meta-nexigon enable it for you. Nexigon Agent reads the same device properties as the earlier script, so devices keep their configuration and update status.
In Nexigon Hub, deploying a release takes a click: choose Configure Updates on a device and follow a tag or pin a version. The same panel also offers settings that decide when devices update:
- Maintenance windows restrict the reboot into a new system to quiet hours in the device’s local time. Nexigon Agent installs the update in advance while the device keeps working.
- Spreads release an update to a growing share of devices, either automatically over a period, such as a week, or up to a percentage that you raise step by step. Problems surface while only a few devices have the release. If they do, hold the remaining devices.
- Holds keep a device at its current version, for example during a customer’s acceptance test.
- Retries limit failed attempts and space them out.
- Checkpoint releases ensure that devices install a release that later releases depend on, for example one that migrates data to a new format. A device that is several releases behind installs the checkpoints on its way to the target.
The earlier script ignored these settings, so they take effect once a device runs Nexigon Agent 0.7. Review them before you roll out the first image.
Apps That Stay as Configured
Applications usually change more often than the base system, and different devices often need different ones. Rugix Apps deploys application workloads, such as Docker Compose stacks, independently of the base system, with atomic installation and rollback. Until now, nexigon-rugix provided a command that deployed an app to a device once, when you invoked it.
With the new Rugix Apps integration, you configure which apps a device should run and in which release, and Nexigon Agent keeps the device in that state. It installs and updates apps, starts a workload again after it stops, for example after a reboot, and removes old releases that it no longer needs. Device profiles can each contribute apps, so a base profile can install a monitoring app on every device while a customer profile adds that customer’s workload.
Nexigon Agent installs a new release while the current one keeps running and switches to it inside the maintenance window, if you set one. If the new release fails to start, Rugix Apps returns to the previous one. Nexigon Agent records which release each installation came from. It therefore knows what a device runs, even after a rollback, and switches back to a release that is still installed without downloading it again. Spreads, holds, and retries work as for system updates.
Apps that the configuration does not list remain under your control. Nexigon Hub can start, stop, roll back, and remove them. The Rugix Apps integration requires Rugix Ctrl 1.4 or later on the device. With Rugix Ctrl 1.4.1 or later, Nexigon Hub also shows the recent logs of every app.
Still Primitives Underneath
Nexigon Hub contains no update logic of its own. It writes the desired state of a device to a device property. Nexigon Agent reads it, downloads bundles from a repository, reports its progress in a second property, and records each step as an event. Check Now and Retry Update invoke commands on the device. Nexigon CLI and the API work with the same properties and commands as the web interface.
The property protocol is documented, and its format is now stable, so later versions of Nexigon Agent only add optional fields. A custom update workflow that implements the protocol gets the same treatment in Nexigon Hub as the built-in integrations.
Device Keys in Hardware
Each device authenticates to Nexigon Hub with a certificate and a private key. Until now, Nexigon Agent stored this key in a file, so anyone who copied the device’s storage, for example by cloning its SD card, also copied the device’s identity. Nexigon Agent 0.7 can instead use a key held by a TPM, a PKCS#11 token, or the Raspberry Pi firmware. The hardware holds the key and signs with it on request, so a copy of the storage cannot authenticate as the original device.
Nexigon Agent accesses the hardware through a small signer script. Use Hardware-Bound Device Keys provides scripts for TPM 2.0, PKCS#11 tokens, and the Raspberry Pi firmware and shows how to create the key on each device.
Migrating from nexigon-rugix v0.3
This section applies to Rugix Bakery images that use the nexigon/nexigon-rugix-ota or nexigon/nexigon-rugix-apps recipes. For Yocto and other images, follow the upgrade guide. If you run Nexigon Hub yourself, upgrade it to 2026.4.0 or later first.
Step 1: Switch the Recipes
Switch the nexigon repository to the v0.4 branch, which installs Nexigon Agent 0.7:
rugix-bakery.toml[repositories] nexigon = { git = "https://github.com/nexigon/nexigon-rugix.git", branch = "v0.4" }
In your layer, remove the nexigon/nexigon-rugix-ota and nexigon/nexigon-rugix-apps recipes and their parameters, keep nexigon/nexigon-rugix-watchdog, and enable the integrations in Nexigon Agent’s configuration:
layers/customized.tomlrecipes = [ # ... "nexigon/nexigon-agent", "nexigon/nexigon-agent-config", "nexigon/nexigon-rugix-watchdog", ] [parameters."nexigon/nexigon-agent-config"] extra_config = """ [integrations.rugix.system-updates] enabled = true # NEXIGON_REPOSITORY/NEXIGON_PACKAGE from `.env` and the `tag` parameter. path = "default/gateway-os/stable" # Verify bundles with the hash from their metadata in Nexigon Hub. use-bundle-hash = true [integrations.rugix.apps] enabled = true use-bundle-hash = true """
Set path to the repository, package, and tag that your devices follow today, and omit the integration that you do not need.
Step 2: Check Your Scripts
Release pipelines need no changes if they create each version with a locked tag equal to its version string, as the release scripts of the Nexigon template for Rugix Bakery do. Nexigon Agent uses this tag to identify the release that a device runs.
Nexigon Agent does not provide the nexigon.rugix-apps.deploy, list, and info commands of the earlier recipe. Scripts that call them should configure apps through the device property instead.
Step 3: Roll Out the First Image
Devices install the first image with Nexigon Agent 0.7 through their existing update service. Roll it out to a test device first, for example with a canary tag, and wait until Nexigon Hub shows the new version as completed. Then move the tag that the rest of the fleet follows.
From then on, Nexigon Agent installs all further updates. Apps that you deployed with the earlier commands keep running and appear as not managed. To manage such an app, choose a release for it on the Applications tab.
Getting Started
Set Up System Updates and Set Up Rugix Apps show how to prepare images and publish releases. To connect a new Rugix project to Nexigon, start with the Rugix Bakery guide. The release notes list all changes of Nexigon Agent 0.7.
You can sign up for a free trial to try the new integrations. If you have questions about your migration, contact us.
