Repository navigation
fix(packer): make the DigitalOcean 1-Click bundle actually buildable (#2281) - #2522
Conversation
…#2281) `packer build` had never actually been run: it was gated on GHCR images, which only existed once a release tag was pushed. The first real run, against `v0.9.5-rc2`, failed twice out of two attempts with the same error: E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1406 Script exited with non-zero exit status: 100 `trinity.pkr.hcl` carried no `cloud-init status --wait` provisioner, so `scripts/01-provision.sh` opened with `apt-get update` while Ubuntu 24.04's boot-time `apt-daily` and `unattended-upgrades` units still held the dpkg lock. Packer's SSH becomes available well before those finish, so the very first apt call raced them. The remedy is DigitalOcean's own rather than an invention: their reference template (`marketplace-partners/marketplace-image.json` — the same repo `90-cleanup-and-check.sh` already pins by SHA) opens with exactly this provisioner. Ours had no wait of any kind. It goes in the template rather than at the top of `01-provision.sh` because the `file` provisioner also runs before that script. The test asserts ORDER, not presence. A wait placed after the file provisioner or after `01-provision.sh` is inert, and the symptom of getting it wrong is a build that fails intermittently on someone else's machine — which reads as a flake and gets retried rather than fixed. `packer build` itself cannot be the guard: it needs a DO token and ~15 minutes, so it runs on nobody's PR. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01CxAk9CPZNh7hpNX3dyXJRh
…nd first boot (#2281) Hardening, not a fix for an observed failure — recorded plainly because the symptom that prompted it had a different cause, and a commit that misattributes one is worse than no commit. The first `packer build` died with `ufw: command not found` (exit 127), which reads as a PATH problem. It was not: `01-provision.sh` installs `ufw` and then installs `iptables-persistent`, which on noble REMOVES ufw (see the following commit). The binary was genuinely gone. The line is kept anyway because the reasoning stands on its own. Packer's shell provisioner runs a non-login, non-interactive SSH shell whose PATH does not reliably carry the sbin directories, and both scripts call tools that live there — `ufw` in the build, `iptables` and the firewall unit at first boot. Ubuntu 24.04 merged /sbin into /usr/sbin, so both names are listed for older bases. Setting it once at the top beats absolute-pathing each call: the next sbin tool added would otherwise reintroduce the failure. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01CxAk9CPZNh7hpNX3dyXJRh
…KER-USER with a unit (#2281) Third failure of the first-ever `packer build`, and the one the previous two were symptoms of. `01-provision.sh` installed `ufw` (line 14) and then `iptables-persistent` (line ~40). `ufw`'s control file carries: Breaks: iptables-persistent, netfilter-persistent unversioned, so apt resolved the second install by REMOVING ufw: The following packages will be REMOVED: ufw It said so plainly and carried on, and the build died ninety lines later at `ufw --force reset` with "ufw: command not found" — five and a half minutes in, after pulling all five images. The error names a line that was never the problem. ufw is the half that stays. DigitalOcean's own 99-img-check.sh hardcodes `fw="ufw"` on Ubuntu and calls `ufw status` with no existence check, reporting "No firewall is configured" when it is absent — not a thing to hand a Marketplace reviewer. Reboot persistence moves to trinity-docker-firewall.service, a oneshot ordered `After=docker.service`, enabled at build time. This is not a workaround forced by the conflict; it is the more correct mechanism either way. netfilter-persistent restores rules at boot with no ordering against Docker, and the DOCKER-USER chain does not exist until Docker creates it — so what it replaces was itself racy. The unit's script waits for the chain rather than assuming ordering implies readiness. DROP_PORTS and the iptables calls move into docker-firewall.sh so first boot and the unit share one list and one apply path; first boot still calls it directly, because cloud-init's per-instance scripts and the unit are both in multi-user.target and the rules must precede the containers. Tests: the port-parity guard follows the list to its new home. Two new guards — one that the package never returns (it would uninstall the firewall DO looks for), one that a unit reapplies the rules at boot, since cloud-init's hook runs once per droplet and a reboot would otherwise reopen every port, which is the silent reopening review I1 already fixed once. The bundle guard now derives the expected file mode from `install -m` rather than assuming 0755 — a systemd unit must not be executable. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01CxAk9CPZNh7hpNX3dyXJRh
The first real build of this bundle could not get a droplet created. Packer
imports a temporary SSH key and creates the droplet in the very next API call,
and DigitalOcean does not reliably resolve the new key id that fast:
Error creating droplet: POST .../v2/droplets: 422 ...
59080305 are invalid key identifiers for Droplet creation.
It cost 4 of 5 creates, each failing in about seven seconds. It is not a flake
to retry into at that rate, and retrying is the wrong shape anyway — each failed
attempt leaks the temporary key, and Packer's own cleanup then 404s on it, so
the keys pile up on the account.
`ssh_key_id` + `ssh_private_key_file` let the operator supply a key that already
exists, which removes the window by construction: nothing is created during the
build. Both default to their zero values, which the builder reads as unset and
handles exactly as before, so this changes nothing for anyone who omits them.
The same failure was reproduced directly with doctl — a key import returns an id
that the immediately following list omits, and a droplet create with that id
succeeds once a command or two has passed. So it is a consistency window on
DigitalOcean's side, not something the template was doing wrong.
README documents both the symptom and the reap command for strays.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01CxAk9CPZNh7hpNX3dyXJRh
…ole bundle (#2281) The bundle could not have worked on any droplet. The `file` provisioner uploads `files/` to `/tmp/trinity-files` and `01-provision.sh` installs from `/tmp/trinity-files/opt/...`, `/etc/...` and `/var/...` — but with the destination absent, Packer strips the top-level directory names on the way up. Verified both ways against a live droplet. Destination absent: /tmp/trinity-files/trinity-firstboot/firstboot.sh /tmp/trinity-files/update-motd.d/99-trinity /tmp/trinity-files/systemd/system/trinity-docker-firewall.service /tmp/trinity-files/lib/cloud/scripts/per-instance Destination pre-created: /tmp/trinity-files/opt/trinity-firstboot/firstboot.sh /tmp/trinity-files/etc/update-motd.d/99-trinity /tmp/trinity-files/etc/systemd/system/trinity-docker-firewall.service /tmp/trinity-files/var/lib/cloud/scripts/... So every install line failed with `install: cannot stat` — including the cloud-init boot hook, the one file that makes a droplet do anything at all. It surfaces five minutes into the build, after all five images have been pulled, which is why it took a full run to find. Nothing in CI could have caught it. The bundle-tracked guard checks that the files exist in git, not that they arrive where the script reads them, and `packer build` had never once been run — that is the premise this whole bundle shipped on. The guard added here asserts the mkdir precedes the file provisioner. It is a static check of an ordering whose violation is invisible until a real build, which is the same reason the cloud-init wait next to it is asserted by position rather than presence. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01CxAk9CPZNh7hpNX3dyXJRh
…2281) `90-cleanup-and-check.sh` clones DigitalOcean's tooling into `/tmp/marketplace-partners`, runs their `90-cleanup.sh`, then runs their `99-img-check.sh`. Line 28 of their cleanup is: rm -rf /tmp/* /var/tmp/* so by the time the checker is invoked it has been deleted: bash: /tmp/marketplace-partners/scripts/99-img-check.sh: No such file or directory Script exited with non-zero exit status: 127 The ordering was not fragile, it was impossible — DigitalOcean's validation had never once run against this image. It stayed hidden because `packer build` had never run either: the two failures concealed each other, and the check that would have caught the rest of this series was precisely the one being skipped. The checker is staged in /dev/shm before cleanup. tmpfs, so it survives a cleanup that only clears /tmp and /var/tmp, it is not part of the snapshot's filesystem, and nothing has to be deleted afterwards — which preserves the rule the file already states, that NOTHING may run after img_check. Staging under /opt or /root would have meant a post-check `rm`, i.e. modifying the image after the step that certifies it. Note this means img_check's verdict on this image is still unknown; it has now been made reachable, not yet passed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01CxAk9CPZNh7hpNX3dyXJRh
…s on (#2281) First verdict img_check has ever returned on this image: [FAIL] DigitalOcean directory detected. `checkAgent` tests for `/opt/digitalocean`, and any FAIL ends the script with `exit 1`, which fails the Packer build. So while the agent is present no snapshot can be produced at all — the build gets through provisioning, the pulls, and the cleanup, and then stops at the last step. The stock `ubuntu-24-04-x64` base ships it; the build's own apt sources show repos-droplet.digitalocean.com/apt/droplet-agent. Their `90-cleanup.sh` does not remove it, and the remedy is the one img_check itself prints. DigitalOcean installs the agent per droplet, so baking it into a submitted image is the thing being checked for. The purge runs before their cleanup, so the image handed to img_check is already clean. `/opt/digitalocean` is removed explicitly afterwards because the check tests for the DIRECTORY, not the package, and a purge can leave empty directories behind. The three remaining WARNs are un-cleared /var/log/{auth,kern,ufw}.log. Those are written by sshd and ufw in the window between cleanup and the check — inherent to running the check over SSH — and WARN does not fail the build. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01CxAk9CPZNh7hpNX3dyXJRh
The first droplet ever created from the snapshot came up with no Trinity, no
certificate and no password. `/var/log/trinity-firstboot.log` contained one line
— its own header — and `/etc/trinity/firstboot-failed` was present.
The cause is on line 47, three lines in:
ADMIN_PASSWORD="$(tr -dc 'A-Za-z0-9' </dev/urandom | head -c 24)"
in a script that opens `set -euo pipefail`. `head` closes the pipe after 24
bytes, `tr` dies of SIGPIPE against an endless source, `pipefail` surfaces that
status out of the command substitution, and `set -e` ends the script. It is not
a race or a rare path — it happens every time, so first boot could never have
worked on any droplet.
Reading a bounded chunk first means nothing closes a pipe early: `head` takes
1024 bytes and exits, `tr` drains all of them and exits 0. `LC_ALL=C` keeps tr
byte-oriented instead of trusting the ambient locale with random bytes. 1024
bytes yield ~635 alphanumerics, so the 24-character slice cannot plausibly come
up short — but it is a credential, so a short one is a fatal error rather than
something written quietly.
The guard executes the real block instead of matching its text. A static rule
would only recognise the one spelling that happened to be wrong, and this
failure is a runtime signal: `bash -n` passes on the broken version, which is
why every syntax check in this series went green over it.
Worth recording that the surrounding design behaved correctly. The per-instance
hook caught the non-zero exit, wrote `firstboot-failed`, and the MOTD reports it
with the log path and the retry command — so the droplet announced its own
failure rather than presenting a broken login page.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01CxAk9CPZNh7hpNX3dyXJRh
vybe
left a comment
There was a problem hiding this comment.
Validated via /validate-pr.
Scope: 11 files, all under packer/digitalocean/ + tests/unit/test_2281_*. Zero backend, frontend, schema or compose changes — packaging invariants (§4.8/§4.9) are N/A.
Security scan: clean. No keys, real emails, public IPs, credential files, symlinks or host paths. The only ADMIN_PASSWORD= hit is the random generator being fixed, and the only "email" hits are pytest decorators.
The security-relevant change is a net improvement. trinity-docker-firewall.service (oneshot, After=/Requires=docker.service, RemainAfterExit=yes) replacing iptables-persistent is correct on its own merits, not just conflict avoidance: netfilter-persistent restores with no ordering against Docker and DOCKER-USER does not exist until Docker creates it. The readiness loop rather than bare ordering is the right call. DROP_PORTS collapsing to one list shared by the probe, the insert, first boot and the unit removes the stacking-rule failure mode. Applying it from firstboot as well as the unit is deliberate and justified in-comment.
Tests are behavioural, not pattern-matched — the point that matters most here. test_generator_succeeds_under_pipefail actually executes the block under bash -euo pipefail and asserts exit 0 + length 24 + alnum, so it would catch a different wrong spelling of the SIGPIPE bug, which a static rule could not. Ordering guards assert by position (wait.start() < first_file.start()), which is the substance for both the cloud-init wait and the upload mkdir — presence alone is inert if either runs late. Each is claimed mutation-checked.
CI: fully green, including all six pytest seeds, journey-smoke, gitleaks, schema-parity and verify-non-root.
Two notes, neither blocking:
Related to #2281is not a closing keyword, so the issue will not auto-promote tostatus-in-dev. That is correct here — #2281 covers vendor application and Packer snapshot, and this delivers only the snapshot half while explicitly leaving the vendor application outstanding. The issue should stay open atstatus-in-progress.- A separate
/reviewstructural pass was not run; I read the firewall, PATH and password hunks directly instead. The diff carries no SQL, auth boundary or concurrency surface.
Approving.
…log copy (#2281) (#2680) * feat(hosting): meet DigitalOcean's build standard, and write the catalog copy (#2281) DigitalOcean granted Vendor Portal access and named `digitalocean/marketplace-partners` as the process of record. Auditing the bundle against that repo and against `droplet-1-clicks@master` found four gaps. Three are fixed here; the fourth needs a measurement. **Security updates were never installed.** Their `99-img-check.sh` scores a pending security update as a hard `[FAIL]`, not a warning, and any FAIL exits non-zero — which fails the build at the last provisioner, furthest from the cause. Nothing in the bundle ran an upgrade, so every green build so far was luck about what the base image carried that day, or about whether Ubuntu's own boot-time timers happened to land first. Neither is ours to own. Adds the `full-upgrade` from their reference `marketplace-image.json`, before the first install so the packages we add are patched too. **`X-DO-MARKETPLACE` was missing** from the Caddyfile first boot writes. Rule 10 of their build standard specifies it on the reverse-proxy block and their own catalog apps ship it. It breaks nothing at runtime, which is why it survived review — it is visible only to a Marketplace reviewer. **There was no `listing.md`.** Rule 11 asks for catalog copy in-repo so the page and the image are versioned together. Ours lived nowhere. It is also where the >=8 GB sizing guidance and the "DigitalOcean does not build or support Trinity" line required by the vendor terms actually get written down. **Submission is now automatable.** `manifest` + `shell-local` post-processors read the snapshot id from the build's own record and PATCH it to the vendor API with the real payload (`imageId` required, plus `reasonForUpdate`, `osVersion`, `softwareIncluded[]`). A `post-processors` CHAIN rather than sibling blocks, because shell-local reads what manifest writes and siblings run in parallel. `mp-submit.sh` is a no-op unless `TRINITY_DO_APP_ID` is set, so a plain `packer build` still just builds, and it names the 400 that means "a previous submission is still in review" — which otherwise reads as a bad token. The runbook gains a **submission gate**: nothing goes to DigitalOcean until another team member has QA'd a droplet from that snapshot. A green `img_check` says the image is acceptable, not that Trinity works on it. **Still open: `build_size`.** It is `s-2vcpu-4gb` (80 GB), and the comment above it claimed the opposite of the value. The build droplet's CPU and RAM never reach the snapshot — Trinity does not run during the build — but the disk size does, and DigitalOcean does not allow shrinking it. So 80 GB excludes every plan with a smaller boot disk, and on the v5 line disk is decoupled from memory: `s5-8vcpu-16gb-30gb` is 16 GiB of RAM on a 30 GiB disk, exactly the plan a Trinity operator should pick, and this snapshot cannot deploy to it. The comment now states the real criterion — the smallest boot disk the baked images fit on — and the value waits on measuring them. Guards are mutation-checked: reverting any one fix turns its test red. The no-op default is executed rather than pattern-matched, per #2522. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_011sj48trT3XmyaSus4GUtXB * fix(hosting): stop forcing an 80 GB boot disk to hold 9 GiB (#2281) Measured the snapshot the build actually produces: Name Min Disk Size Size trinity-v0-9-5-rc2-20260903 80 9.01 GiB The content is 9 GiB. The 80 GB floor came entirely from the build droplet's own disk, and DigitalOcean does not let a snapshot deploy to anything smaller — "you must select a disk size equal to or larger than the Droplet used to create the snapshot." So every customer was being pushed onto an 80 GB boot disk, and paying for it, to hold 9 GiB. On the v5 plans, where the boot disk is sized independently of RAM, that is the difference between choosing a disk and being told one. s-1vcpu-2gb (50 GB) rather than DigitalOcean's recommended $6 s-1vcpu-1gb (25 GB): the 9.01 GiB is their COMPRESSED stored size, while Docker's overlay2 tree on the build droplet is uncompressed — actual build-time use is nearer 18-20 GB before Ubuntu and the apt caches. Too tight against 25 GB to commit without a build proving it, and a build droplet that exhausts its disk fails only after pulling every image. 50 GB is also what three of DigitalOcean's own catalog apps build on (openclaw, jellyfin, craftcms). 25 GB is probably reachable and would match their guidance exactly; one experimental build settles it, and it is not worth blocking the listing on. Marked with a ponytail: note. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_011sj48trT3XmyaSus4GUtXB * docs(hosting): the 18-20 GB estimate behind build_size was wrong — measure it (#2281) A droplet booted from the 2026-09-10 snapshot reports: /dev/vda1 77G 8.8G 68G 12% / 8.8 GB, with everything installed and Trinity running. The comment justifying s-1vcpu-2gb assumed Docker's uncompressed overlay2 tree would reach 18-20 GB and called 25 GB too tight. That was a guess dressed as a reason, and it was wrong by more than a factor of two. Value unchanged — 50 GB still works and is what three of DigitalOcean's own catalog apps build on — but the stated reason is now the measurement rather than the guess, and the ponytail note names what is actually left: 25 GB is settled on disk, and the only open question is whether 1 GB of RAM survives `apt full-upgrade` and `docker pull`. Their own exa-24-04 builds on that size. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_011sj48trT3XmyaSus4GUtXB * feat(hosting): build on the $6 droplet, and stop same-day snapshots colliding (#2281) Two builds of v0.9.5-rc2, identical except for build_size, settle what was guesswork: s-1vcpu-2gb (50 GB) 14m38s img_check 8/0 snapshot min disk 50 s-1vcpu-1gb (25 GB) 11m53s img_check 8/0 snapshot min disk 25 Both open questions about the $6 droplet are now measured. Disk: a droplet from the snapshot reports 8.8 GB used with everything installed and Trinity running, against 25 GB available. RAM: a full build on 1 GB completed with no OOM and no disk exhaustion, through `apt full-upgrade` and the agent base image pull, the two places 1 GB would have bitten. It is also faster than the size it replaces, and DigitalOcean's own exa-24-04 builds here. That is AC 2 of #2281 met literally rather than in substance, and it takes the floor a customer must deploy onto from 80 GB down to 25 GB. DigitalOcean does not allow a snapshot to deploy to a smaller disk than it was built on, so this value is the listing's real hardware constraint: on the v5 line, where boot disk is sized independently of RAM, it decides whether an operator picks their disk or is handed one. Also: `snapshot_name` gains minute resolution. Those two builds produced two snapshots named `trinity-v0-9-5-rc2-20260910`, distinguishable only by ID and min disk size, while the Vendor Portal's "select a system image" step picks by what it shows you. Submitting the wrong image costs a review cycle and fails silently, since both are valid Trinity snapshots. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_011sj48trT3XmyaSus4GUtXB * docs(hosting): the Console only shows the password for half of customers (#2281) Found by booting a droplet from the 25 GB snapshot and looking at the Console: it renders `trinity-25gb-verify login:` and nothing else. `passwd -S root` reports `L` — locked. DigitalOcean's create page requires either a password or an SSH key, and the choice decides which route to the MOTD exists: password auth root has a password, Droplet -> Console works, no SSH needed SSH key auth root is LOCKED, the Console cannot accept a login at all; the customer must ssh root@<ip> `listing.md` and this README both described the Console as *the* way to get the admin password, unconditionally. For every customer who picks key auth — which DigitalOcean's own create page nudges toward — that instruction leads to a prompt they cannot satisfy, for the one credential without which the listing is unusable. Not fixable by setting a root password: `img_check.sh` scores "User root has no password set" as a PASS condition, so an image that sets one fails review. Both routes reach the MOTD, so documenting both is the fix. The MOTD itself is correct and was never the problem — it renders the password, the URL, the HTTPS status and the support line as designed. Also adds the `cat /etc/trinity/admin-credentials` fallback for re-reading it later. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_011sj48trT3XmyaSus4GUtXB --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
What
The first-ever
packer buildof the 1-Click bundle. It could not produce a snapshot — eight defects, each of which stopped the build or the droplet. All eight are fixed here, and the result is a snapshot that boots to a working, HTTPS-served Trinity with no input.The bundle shipped in #2281 with
packer buildexplicitly deferred to "the first release with GHCR images".v0.9.5-rc2is that release. Everything below is what that first run found.Why nothing caught this
The defects concealed each other, and the one step that would have reported most of them never ran:
packer validatedoes not read the payload tree.bash -npasses on every one of these — three are runtime signals, not syntax.img_check.shis deleted by their own90-cleanup.shbefore it runs, so their validation had never executed once.The eight
cloud-init status --waitprovisionerapt-getraces boot-timeapt-dailyfor the dpkg lock → exit 100. 2/2 builds.ufwdeclares unversionedBreaks: iptables-persistentufw --force reset. Also leaves the image with no firewall forimg_checkto find.files/opt/...arrived astrinity-firstboot/..., so everyinstallpath was unreachable — including the cloud-init boot hook.90-cleanup.shdoesrm -rf /tmp/*img_check.shbefore it runs. Their validation had never executed.droplet-agentnever purged[FAIL] DigitalOcean directory detected→exit 1. No snapshot can ever be produced.tr -dc … </dev/urandom | head -c 24underset -o pipefailset -e→ first boot died three lines in, on every droplet.Two are worth reading in full: #3, where apt reported the removal as ordinary output and the error surfaced ninety lines away; and #5, which is why the checker that would have caught #3 and #6 was itself missing.
Notable design change
iptables-persistentis replaced bytrinity-docker-firewall.service, a oneshot orderedAfter=docker.service. This is not merely conflict avoidance —netfilter-persistentrestores rules at boot with no ordering against Docker, and theDOCKER-USERchain does not exist until Docker creates it. The thing being replaced was itself racy.DROP_PORTSand the apply logic move intodocker-firewall.shso first boot and the unit share one list.ssh_key_id/ssh_private_key_fileare new optional vars. DO's API does not reliably resolve a just-imported key before the droplet create that references it — 4 of 5 creates failed with422 … invalid key identifiers. Supplying an existing key removes the window; both default to their zero values, so omitting them is exactly today's behaviour.Verification
Snapshot
trinity-v0-9-5-rc2-20260903built,img_checkreporting0 Tests FAILED. A droplet created from it:SAN: IP Address:…, Sep 3 → Sep 10 (~6.7d, theshortlivedprofile), chain validates with no-kcloud-init status: done, nofirstboot-failed/api/version→0.9.5-rc2,git_commit bb31eef9…,edition: "oss",enterprise_features: [],install_source: do-marketplaceNot verified: a model round-trip. A 1-Click ships no model credential by design (
Authentication failure: Not logged in), so this needs a key the operator supplies.Tests
Six guards added/updated, each mutation-checked (reverting the fix turns them red):
ufw+iptables-persistentcan never both be installedimg_checkmust not be invoked from/tmpdroplet-agentpurged before their cleanupset -euo pipefailrather than pattern-matched — a static rule would only know the one spelling that was wrongThe bundle-mode guard now derives the expected file mode from
install -minstead of assuming 0755, since a systemd unit must not be executable.Related to #2281. Unblocks the vendor application and bar 1 of the release floor.
🤖 Generated with Claude Code
https://claude.ai/code/session_01CxAk9CPZNh7hpNX3dyXJRh