Skip to main content
Version: v0.1 (Stable)

Dual-Runtime Hardware Abstraction Layer (HAL)

ActonOS utilizes an intelligent Hardware Abstraction Layer (HAL) that auto-detects its hosting environment on boot and adapts all system daemons accordingly.


Runtime Differences & Capability Matrix

Feature SubsystemBare-Metal MiniPC ModeDocker Container Mode
Base OS LayerDebian 12 Minimal (Read-only root)Alpine Linux / Ubuntu slim base
Sandbox TechnologyKernel Namespaces via bubblewrap (bwrap)Jailed Subshell + Non-root acton user
Resource LimitsLinux cgroups v2 (RAM, CPU quota, PIDs)Docker container resource constraints
Network ManagementD-Bus NetworkManager + wpa_supplicantDocker bridge / host networking
Wi-Fi HotspotAP Mode with dnsmasq captive portalN/A (Web UI wizard on :8080)
OTA UpdatesAtomic /data/bin/actond symlink swap + WatchdogStandard docker pull image updates
Hardware TelemetryNative D-Bus CPU thermal & NVMe sensors/sys/fs/cgroup and /proc metrics

Automatic Detection Mechanics

The HAL initializes before any agent services start:

  1. It checks the RUNTIME_MODE environment variable (docker or baremetal).
  2. If unset, it inspects filesystem markers (/.dockerenv, /run/.containerenv) and cgroup hierarchy definitions.
  3. It sets the global HAL interface which routes all network, sensor, and sandbox calls to the appropriate driver.