Skip to main content
Deployed kiosk devices need a way to receive library updates, bug fixes, and firmware patches without physical access. This page covers the three most common OTA delivery tools for embedded Linux, and how to preserve credentials across updates.

Update mechanisms

All three hosted tools (Mender, Balena) require an account and a per-device agent. For air-gapped deployments, SWUpdate with a local update server is the most appropriate choice.

SWUpdate

SWUpdate applies a signed .swu image containing your firmware, application binary, and library updates. It does not disturb the credential partition if you design the image correctly.

Partition layout

The data partition is mounted at /var/lib/humain and is never touched by SWUpdate. Write your credential here:
Update your systemd unit to read from the persistent partition:

Building the .swu image


Mender

Mender provides an A/B partition OTA system with a hosted dashboard. The Mender client runs as a daemon and polls the Mender server for pending updates.

Install the Mender client

Configure

Credential preservation

Mender stores persistent device data in /data/mender/ by default. Symlink your credential file there:
The /data partition is preserved across A/B updates by Mender’s artifact installer.

Balena Cloud

Balena runs your kiosk application as a Docker container. Updates are deployed by pushing a new image to the Balena registry — the on-device balenaEngine pulls and hot-swaps containers without rebooting.

docker-compose.yml

Set the credential as a Device variable in the Balena dashboard (not a fleet variable — each device needs its own):
  1. Open Balena Cloud → your fleet → select the device
  2. Device variables → Add variable
  3. Name: HUMAIN_CREDENTIAL, Value: hk_live_your_credential_here
Device variables are injected as environment variables into the container and are preserved across deployments and container restarts.

Pushing an update

Balena performs a delta update — only changed layers are transferred, minimising bandwidth on cellular-connected devices.

Credential preservation checklist

Before deploying any OTA update mechanism, verify:
  • The credential is stored on a partition that is not overwritten by the update
  • The systemd unit (or container) reads the credential from the persistent location after update
  • The new library version is backward-compatible with your credential format (hk_live_ format has not changed since v1.0.0)
  • A failed update does not leave the device without a valid credential (test rollback)
  • Credential rotation can be performed independently of firmware updates (remote variable update or SSH)