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
data partition is mounted at /var/lib/humain and is never touched by SWUpdate.
Write your credential here:
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:
/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
- Open Balena Cloud → your fleet → select the device
- Device variables → Add variable
- Name:
HUMAIN_CREDENTIAL, Value:hk_live_your_credential_here
Pushing an update
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)