mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[GH-ISSUE #202] Pre-pivot init misresolves Ubuntu /var/run symlink #63
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#63
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?
Originally created by @ethe on GitHub (Aug 21, 2026).
Original GitHub issue: https://github.com/kvcache-ai/AgentENV/issues/202
Affected component
Firecracker runtime
AgentENV version
547c1a8a515382cfc2ba02cb8aeb1bd134b7327f(the same line is present on currentmain)Host environment
ubuntu:24.04OCI rootfsOperation and configuration
Steps to reproduce
mkdirerror for/mnt/user/var/run.Ubuntu supplies
/var/runas an absolute symlink to/run. Beforepivot_root,mkdir -p /mnt/user/var/runfollows that symlink against the tools-drive root rather than the mounted user root.Expected behavior
The pre-pivot bootstrap prepares only real mount targets and starts an official Ubuntu rootfs without emitting a filesystem error.
/var/runcan be handled afterpivot_root, where its absolute/runtarget resolves inside the user rootfs.Actual behavior
The pre-pivot directory preparation includes
/mnt/user/var/runand emits:The init script intentionally does not use
set -e, so the observed sandbox continued booting and envd became reachable. This report does not claim the warning is fatal. It is nevertheless a deterministic compatibility error, makes serial diagnostics misleading, and means that one member of the grouped directory preparation did not do what its comment says.Logs and diagnostics
Relevant source:
A minimal fix is to omit
/mnt/user/var/runfrom the pre-pivot list.pivot-initalready runsmkdir -p /var/runafter the root switch, where Ubuntu's/var/run -> /runresolves correctly.Reproduction frequency
Always
Regression information
547c1a8a515382cfc2ba02cb8aeb1bd134b7327for earlierAdditional context
The same pre-pivot pattern may affect other distro rootfs images that use an absolute
/var/run -> /runsymlink.Pre-submission checklist