Upgrade to Nexigon Agent 0.7
Nexigon Agent 0.7 updates the system and the apps of a device itself, through its system update and Rugix Apps integrations. They replace the separate update services and command scripts that earlier device images installed:
| Earlier Component | Replacement |
|---|---|
nexigon/nexigon-rugix-ota recipe (Rugix Bakery) | [integrations.rugix.system-updates] in the agent configuration |
nexigon/nexigon-rugix-apps recipe (Rugix Bakery) | [integrations.rugix.apps] in the agent configuration |
nexigon-rugix-ota and nexigon-rauc-ota recipes (Yocto) | meta-nexigon-rugix or meta-nexigon-rauc, which enable the integration |
nexigon-rugix-apps recipe (Yocto) | [integrations.rugix.apps] in NEXIGON_AGENT_EXTRA_CONF |
The integrations use the same device properties and command names as these components, so devices keep their update configuration and status and the web interface keeps working during the switch. The integrations also support holds, maintenance windows, retry policies, spreads, and checkpoint releases, which the earlier update services ignored.
This page shows how to switch a device image and roll it out. The release notes list all changes of the release.
Before You Upgrade
Upgrade Nexigon Hub to 2026.4.0 or later. Its web interface manages the integrations.
Upgrade Nexigon CLI to 0.7 as well. With a user token, its resource commands
require --organization, as
Organization Selection
describes.
Update a Rugix Bakery Image
Switch the Nexigon recipe repository to v0.4, which installs Nexigon Agent
0.7:
[repositories]
nexigon = { git = "https://github.com/nexigon/nexigon-rugix.git", branch = "v0.4" }Remove nexigon/nexigon-rugix-ota and nexigon/nexigon-rugix-apps from your
layers, keep nexigon/nexigon-rugix-watchdog, and enable the integrations in
the agent configuration:
recipes = [
# ...
"nexigon/nexigon-agent",
"nexigon/nexigon-agent-config",
"nexigon/nexigon-rugix-watchdog",
]
[parameters."nexigon/nexigon-agent-config"]
extra_config = """
[integrations.rugix.system-updates]
enabled = true
path = "my-repo/gateway-os/stable"
[integrations.rugix.apps]
enabled = true
"""Merge these settings into an existing extra_config value. The settings of
the removed recipes map to the integrations as follows:
| Earlier Setting | Integration Setting |
|---|---|
NEXIGON_REPOSITORY and NEXIGON_PACKAGE in .env, tag of the update recipe | path = "<repository>/<package>/<tag>" |
interval of the update recipe, such as 4h | check-interval-secs, such as 14400 |
use_bundle_hash of either recipe | use-bundle-hash of the corresponding integration |
The Rugix Apps integration requires Rugix Ctrl 1.4 or later. Without apps on
your devices, omit [integrations.rugix.apps].
Projects based on the
Nexigon template for Rugix Bakery
can take over its latest version instead. It reads NEXIGON_REPOSITORY and
NEXIGON_PACKAGE from .env as before.
Update a Yocto Image
On the main branch of meta-nexigon, which supports Yocto 6.0, the
meta-nexigon-rugix and meta-nexigon-rauc layers enable the system update
integration themselves:
-
Remove
nexigon-rugix-ota,nexigon-rauc-ota, andnexigon-rugix-appsfromIMAGE_INSTALL, and addnexigon-agent-confif it is missing. -
Set the default release with
NEXIGON_OTA_REPOSITORY,NEXIGON_OTA_PACKAGE, andNEXIGON_OTA_TAG, as Set Up System Updates describes. -
To manage apps, enable the Rugix Apps integration:
conf/local.conf NEXIGON_AGENT_EXTRA_CONF = "[integrations.rugix.apps]\nenabled = true"
Update Other Images
For an image that you build differently, enable the integrations in
/etc/nexigon/agent.toml, as the configuration reference
describes, and remove any update service or command scripts that earlier
images installed. The image must meet the requirements in
Set Up System Updates and
Set Up Apps.
If you maintain the systemd unit of the agent yourself, remove PIDFile and
ExecStop and set TimeoutStopSec=30, as in the unit under
Installation. Nexigon Agent 0.7 stops gracefully on
SIGTERM and interrupts an installation in progress.
Roll Out the First Image
Devices with an earlier image install the first image with Nexigon Agent 0.7 like any other release, through the update service of that image:
- Publish a release built as described above.
- Deploy it to a test device and wait until its status shows the new version
and the state
completed. On Rugix systems, the new agent commits the system after it connects to Nexigon Hub. - Deploy the release to the rest of the fleet, for example in stages.
From then on, the agent installs all further updates. Each device keeps its
dev.nexigon.ota.config property, so a configured hold, path, or other
setting applies right away.
Apps that devices installed through the earlier deploy command appear as not
managed, and the agent leaves them unchanged. To manage such an app, list it in
dev.nexigon.rugix-apps.config. The agent then installs the configured release
as a new generation, as
Managed and Unmanaged Apps
explains.