Configuration is FS-backed under /config/ via config-server (ConfigRequest / ConfigResponse). Changing net.* is a config write + live apply (NetRequest::ApplyIface); other keys still take effect on the next service re-read or reboot. Policy is not an image rebuild.
| Path | Content |
|---|---|
/config/<key> |
Ordinary policy keys (dot names, e.g. net.ip) |
/config/secrets/<name> |
Secret material for key secret.<name> |
/config/certs/<name> |
Phase 68 trust anchors (cert.<name>) |
/boot.log |
Last boot log ring dump (supervisor) |
/boot.log.1 |
Previous boot log when log.rotate=1 |
Keys must be printable ASCII without / or NUL. Max lengths: key 32, value 64 (MAX_CONFIG_KEY_LEN / MAX_CONFIG_VAL_LEN).
| Key | Values | Default (QEMU / RPi4) | Notes |
|---|---|---|---|
hostname |
short name | lerux / lerux-rpi4 |
Logged at boot; not applied to DNS yet |
net.mode |
dhcp | static |
dhcp |
Live-applied via ApplyIface. static installs immediately; dhcp restarts discover (static keys remain the timeout fallback) |
net.ip |
dotted IPv4 | 10.0.2.15 / 192.168.1.10 |
Static address / DHCP fallback |
net.gateway |
dotted IPv4 | 10.0.2.2 / 192.168.1.1 |
Default route |
net.dns |
dotted IPv4 | 10.0.2.3 / 192.168.1.1 |
DNS server |
net.prefix |
1–32 |
24 |
Prefix length |
log.level |
error | warn | info | debug |
info |
Applied at boot via LogRequest::SetMinLevel (Phase 57) |
log.rotate |
0 | 1 |
1 |
When 1, rename /boot.log → /boot.log.1 before rewrite |
boot.seeded |
1 |
set after first successful seed | Prevents overwriting operator edits on reboot |
secret.* |
opaque | (none) | Stored under /config/secrets/; listed as keys only |
secret.grok.api_key |
opaque | (none) | Phase 77: reserved for live xAI; unused in CI (lerux grok-one) |
secret.grok.endpoint |
opaque | (none) | Phase 77: reserved completions URL; unused in CI |
cert.* |
opaque | (none) | Phase 68: trust-anchor labels under /config/certs/; shell cert list|show|trust |
Constants live in lerux-interface-types (CFG_*).
- Mount/format FS (
fs up). - Ensure
/configand/config/secretsdirectories exist. - Seed missing keys only (if
boot.seededis absent or incomplete). Never overwrite existing values. - Set
boot.seeded=1and loglerux-supervisor: first-boot seed ok(orconfig already seeded). - Read and log policy:
lerux-supervisor: config hostname=… net.mode=… log.level=…. - If
net.mode=static,ApplyIfacebefore the net probe (lerux-supervisor: net apply static). DHCP mode leaves net-server’s boot discover + fallback alone. - Bring up net; rotate/write
/boot.logaccording tolog.rotate.
config list # list keys (secrets shown without values)
config get <key>
config set <key> <value> # net.* also ApplyIface (prints `net apply: static …` / `dhcp`)
config del <key>
get / set / list # aliases when first arg looks like a key or `config`
hostname # print hostname from config (fallback: lerux)
ip # live iface (dhcp vs static) from net-server
lerux config schema # print this schema summary
lerux config seed-disk # format LERUXFS2 on support/disk.img + default QEMU keysGuest first-boot still seeds if the image is empty; seed-disk is for reproducible QEMU disks with known config before boot.
- Logical key
secret.<name>maps to file/config/secrets/<name>. config listincludessecret.api_tokenbut not the value.config get secret.api_tokenreturns the value (shell may read for operator inspection).- Phase 60 ACL: shell (and any non-supervisor client) cannot
Set/Deletesecret.*keys. Writes returnConfigResponse::Denied(shell printsconfig set: denied (secret.* write is supervisor-only)). Supervisor seeds secrets at first boot / control path only. - Ordinary keys (
hostname,net.*,log.*) remain shell-writable. - No encryption at rest yet; prefer config IPC over direct FS open of
/config/secrets/from untrusted apps.
Operator can change hostname / net.* / log.* via shell without rebuilding loader.img. net.* applies live (ip shows the new mode/address); hostname and log.* still apply on the next re-read or reboot.