mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #221] [CLOSED] fix(tools): defer var/run creation until after pivot #263
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#263
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/221
Author: @ethe
Created: 8/27/2026
Status: ❌ Closed
Base:
main← Head:fix/pre-pivot-var-run📝 Commits (1)
f74dd8efix(tools): defer var/run creation until after pivot📊 Changes
4 files changed (+40 additions, -1 deletions)
View changed files
📝
.github/workflows/ci.yml(+6 -0)📝
Makefile(+1 -0)➕
scripts/tests/verify-tools-init.sh(+30 -0)📝
tools-image/init(+3 -1)📄 Description
Fixes #202
Summary
/mnt/user/var/runbeforepivot_root/mnt/user/runpreparation and letpivot-initcreate/var/runafter the root switchmake test-unitand cover both init scripts in the CI path filtersWhy
Some distribution images, including Ubuntu, provide
/var/runas an absolute symlink to/run. Beforepivot_root, following that symlink resolves against the tools-drive root instead of the mounted user root and produces the deterministic bootstrap warning reported in #202.pivot-initalready creates and mounts/run, then prepares/var/runafter the root switch. Deferring this redundant directory preparation therefore fixes absolute-symlink resolution without distro detection or image-specific behavior.Validation
bash scripts/tests/verify-tools-init.shshellcheck tools-image/init tools-image/pivot-init scripts/tests/verify-tools-init.shactionlint .github/workflows/ci.ymlgit diff --checkRelease note
This updates the tools-image source. After merge, a new immutable
ghcr.io/kvcache-ai/agentenv-toolsversion still needs to be published and selected inconfig/deps_manifest.toml; the existing0.1.0artifact will not contain the change.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.