Skip to content

feat: bootstrap apt packages on ubiworkers via --pkg - #71

Merged
scode merged 1 commit into
mainfrom
feat/ubiworker-pkg-bootstrap
Aug 23, 2026
Merged

feat: bootstrap apt packages on ubiworkers via --pkg#71
scode merged 1 commit into
mainfrom
feat/ubiworker-pkg-bootstrap

Conversation

@scode

@scode scode commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Workers come up as a bare image; anything beyond that meant a manual
apt session on every new VM. The base set is intentionally empty for
now — nothing is needed on every worker unconditionally — so the flag
carries the per-create choice, and dist-upgrade runs regardless.

The bootstrap is detached into a transient systemd unit rather than
run inline, and launched only once tailscale enrollment has succeeded:
tailscale's installer calls apt-get with no dpkg-lock timeout, so an
apt job running first would hold the lock out from under it and could
exhaust enrollment's retry budget, leaving a billed VM unreachable. An
unreachable worker is the one outcome this must never cause; slow or
failed package installs are recoverable over ssh.

Names are installed with apt-get satisfy, not install: with
operator-supplied names, install would treat an unmatched name
containing . as a regex and a trailing - as a removal request.

Workers come up as a bare image; anything beyond that meant a manual
apt session on every new VM. The base set is intentionally empty for
now — nothing is needed on every worker unconditionally — so the flag
carries the per-create choice, and `dist-upgrade` runs regardless.

The bootstrap is detached into a transient systemd unit rather than
run inline, and launched only once tailscale enrollment has succeeded:
tailscale's installer calls apt-get with no dpkg-lock timeout, so an
apt job running first would hold the lock out from under it and could
exhaust enrollment's retry budget, leaving a billed VM unreachable. An
unreachable worker is the one outcome this must never cause; slow or
failed package installs are recoverable over ssh.

Names are installed with `apt-get satisfy`, not `install`: with
operator-supplied names, `install` would treat an unmatched name
containing `.` as a regex and a trailing `-` as a removal request.
@scode
scode merged commit ef68c8b into main Aug 23, 2026
6 checks passed
@scode
scode deleted the feat/ubiworker-pkg-bootstrap branch August 23, 2026 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant