Repository navigation
Build a minimal Debian image with mmdebstrap instead of live-build - #10
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
build/Containerfile has the toolchains (Rust, Go, Node.js) and the image tools. build-apps.sh builds moip-toolkit, booth-display and dmxctl into out/apps and fetches the NDI runtime; an application is rebuilt only when its source changed, and the cargo, Go and npm caches are kept in cache/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces live-build. The root file system is made from the minbase variant with only the run-time packages, and assembled into: - out/utone-linux.img: EFI partition with systemd-boot (no menu), read-only root and the utone-data partition, mounted by utone-init on /data with overlays on /etc, /home and /var/lib - out/utone-linux.iso: the same root as squashfs with a RAM overlay, booted by an initramfs-tools script (boot=utone) The utone user has no password, the hostname comes from the MAC address, the services are system units configured in /etc/default, and SSH host keys are created on the first boot. Debian packages are cached in cache/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Checks that the image reaches the login prompt with the MAC-derived hostname and that no unit failed, and prints the time it took. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
make pulls ghcr.io/technotut/utone-linux-builder tagged with the hash of build/Containerfile and builds it locally only when that tag is missing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The live-build configuration, its hooks and the Dev Container are replaced by build/, rootfs/ and initramfs/. The README describes the disk image, the ISO, the services and the build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chown -R on /etc and /usr cleared the setuid bit of sudo, su and passwd and the shadow group of /etc/shadow, so sudo did not work. Copy the repository files without their ownership instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ping has no file capability in the image, so allow unprivileged ICMP sockets with net.ipv4.ping_group_range. With libnss-myhostname the hostname resolves after it is changed with hostnamectl, so sudo no longer warns that it cannot resolve it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dmxctl exits with 130 on stop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The initramfs had only the klibc tools, whose mount cannot loop-mount the squashfs: install busybox, which initramfs-tools then uses, and load loop. - The boot script used seq, which the initramfs does not have. - Remove the / entry from fstab: the kernel already mounts the root read-only, and the ext4 entry made systemd-remount-fs fail on the ISO's overlay root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The discovery server of the TechnoTUT network is 10.12.230.254 (ndi.svc.technotut.net), as documented in TechnoTUT/Infra; the image still had 10.11.230.254. Document the address, and how to use mDNS on other networks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There is no desktop session in the image. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The disk image is compressed with xz: at 2.56 GB it is over GitHub's limit of 2 GiB per release file (xz -6: 490 MB). balenaEtcher, Rufus and bmaptool write the .img.xz as it is. Also the bmap, the ISO, the qcow2 and SHA256SUMS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port of #7 to the new build: a v* tag runs make build, make test (QEMU/KVM) and make release, and attaches the files to a release of the private TechnoTUT/utone-linux-releases (secret RELEASES_TOKEN). Pull requests that change the build and manual runs build and test without publishing. The builder image is pulled from GHCR with the workflow's token. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace the live-build system with a minimal Debian (trixie) image built with mmdebstrap. A rebuild with no changes now takes about 6 minutes; live-build took about 30.
What changes
make buildruns in a builder container (build/Containerfile). The host needs only podman or docker, make and git.cache/.out/utone-linux.imgis a GPT disk image: systemd-boot, a read-only ext4 root and a 1 GiButone-datapartition for settings. A.bmapfile is written next to it.out/utone-linux.isois a hybrid UEFI ISO: a squashfs root with a RAM overlay.utone-initoverlays/etc,/homeand/var/libontoutone-data.utone-plus the last 6 hex digits of the MAC address.apps/..github/workflows/builder-image.ymlpublishes the builder image to GHCR, tagged with the hash of the Containerfile.makepulls that image and builds it locally if the pull fails.make releaseputs the release files inout/release:utone-linux.img.xz,.img.bmap,.iso,.qcow2andSHA256SUMS..github/workflows/build-image.yml: av*tag runsmake build,make testandmake release, then publishes to TechnoTUT/utone-linux-releases (secretRELEASES_TOKEN). Pull requests that change the build, and manual runs, build and test only.work/) and the devcontainer.Fixes found while testing on KVM
chown -Rcleared the setuid bit ofsudo, so sudo did not work.pingdid not work for the user. Fixed withping_group_range.hostnamectl set-hostname, sudo warned that it could not resolve the hostname. Fixed withlibnss-myhostname.seq, which the initramfs does not have./madesystemd-remount-fsfail on the ISO.10.12.230.254, as documented in TechnoTUT/Infra.Test plan
Run on KVM (QEMU q35 with OVMF):
make testutone-123456and no failed units.systemctl is-system-runningreportsrunning./is read-only ext4,/datais ext4, and the overlays are mounted.libndi.so.6is found by the dynamic linker.systemd-analyze).moip-web(:8000) andbooth(:8080) answer HTTP 200, and moip-web loads the NDI runtime 6.4.dmxctlandmoip-rxeach start on KMS/DRM (bochs).moip-txexits because the VM has no capture device, which is expected.rm -rf /data/overlaybrings back the initial state./datais a tmpfs, sudo works and moip-web answers.moip tx -d -1, 1280x720 at 30 fps).UTONE-990001 (TX)withmoip discoverand showed it withmoip-rxon KMS/DRM.make release: all files are under 2 GiB.bmaptool copyof the.img.xzwith the.bmapgives a disk identical to the.img.After merging
Close ci: build the ISO and the qcow2 image, and publish them on a tag #7, which this PR replaces.
The builder image workflow runs on
main. Make theutone-linux-builderpackage on GHCR public so thatmakecan pull it.🤖 Generated with Claude Code