Repository navigation
release: ship shirudo's root units in the main tarball - #914
Merged
Merged
Conversation
spin's control plane publishes shirudo.service and shirudo-handover.service in the shirudo extension, and embedded copies of them because the main tarball did not carry them. The copies drift from the pinned shirudo the next time it changes a unit. The shirudo part now renders both from the pinned commit's systemd/*.in, @bindir@ as /usr/bin as shirudo-operator.sh does, into shirudo/units. VerifyShirudo refuses a unit that is missing, keeps a placeholder, or does not run /usr/bin/shirudo, and the release ships whatever the directory holds and refuses a build with none. Closes #905 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Why
spin's control plane publishes
shirudo.serviceandshirudo-handover.servicein theshirudoextension (spin-stack/spin#2010). It keeps copies of them because the main tarball doesn't carry them. Only the operator tarball renders them. The copies drift from the pinned shirudo the next time it changes a unit (#905).What changes
shirudo/Dockerfilerenders both units from the pinned commit'ssystemd/*.inintoshirudo/units/, replacing@bindir@with/usr/binasshirudo-operator.shdoes. The step fails if any@...@placeholder is left.VerifyShirudorefuses a unit that is missing, keeps a placeholder, or does not run/usr/bin/shirudo.spin-machine-dev releaseships every file inshirudo/units/underusr/share/spin-stack/shirudo/units/, next toobjects.json. It refuses a build that rendered none.docs/shirudo.mddescribes the new directory.spin then reads the units from the release, as it reads
guest/shirudo, and deletes its copies. That change belongs in spin-stack/spin, once a release carries the units.Verification
412dc8f3). Both units come out withExecStart=/usr/bin/shirudo init $SHIRUDO_INIT_ARGSand no placeholder.task lintpasses.internal/build,internal/release,internal/patched,internal/shirudoandcmd/spin-machine-devpass. I ran the release and dev-tool tests ingolang:1.27.4with GNU tar, xz and patch, because this host's busybox tar can't run them.@bindir@, a unit that runs another binary, both units in the main tarball, and a build with no units.Closes #905
🤖 Generated with Claude Code