Images and updates
An image is Alpine packages + files + programs:
image/packages.txt: the Alpine packages;@debug/@releasetags select per build type.image/rootfs/: files copied over the root filesystem (init scripts, labwc config,.desktopfiles, icons).work/stage: the built programs (tools/xtask/src/programs.rssays where each goes).devices/<id>/overlay/anddevice.toml.
image/build-rootfs.sh builds it rootless with apk.static inside a user namespace. Package scripts can't run
there (wrong architecture, no root), so the first start runs them natively (taunus-firstboot).
cargo xtask rootfs builds it and runs the image checks (tools/xtask/src/check.rs): required files, no
<default /> labwc keybinds, permissions, the device profile.
Installing
| Way | When |
|---|---|
cargo xtask sync | programs and files onto the running device; restarts what changed. Same build type only. |
cargo xtask deploy | a whole image over USB: taunus-flash writes the system partition from the running system and reboots. User data stays. |
cargo xtask flash | from TWRP, when the system doesn't start |
After an image install the device starts twice: the second start runs the package scripts with a progress bar.
//2bi: devices update themselves from signed images published by the project (A/B system partitions, rollback when the new system doesn't come up), not only from a developer's computer.