Skip to main content

Images and updates

An image is Alpine packages + files + programs:

  • image/packages.txt: the Alpine packages; @debug / @release tags select per build type.
  • image/rootfs/: files copied over the root filesystem (init scripts, labwc config, .desktop files, icons).
  • work/stage: the built programs (tools/xtask/src/programs.rs says where each goes).
  • devices/<id>/overlay/ and device.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​

WayWhen
cargo xtask syncprograms and files onto the running device; restarts what changed. Same build type only.
cargo xtask deploya whole image over USB: taunus-flash writes the system partition from the running system and reboots. User data stays.
cargo xtask flashfrom 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.