Skip to content

fix(runtime): fail closed platform rootfs unmount on wipe - #554

Merged
emigmo merged 1 commit into
mainfrom
fix/fail-closed-rootfs-unmount
Sep 18, 2026
Merged

emigmo merged 1 commit into
mainfrom
fix/fail-closed-rootfs-unmount

Conversation

@emigmo

@emigmo emigmo commented Sep 18, 2026

Copy link
Copy Markdown

Summary

  • Product stop/remove wipe (CLI, SDK, managed, Compose) fails closed when platform rootfs detach fails, matching the overlay fail-closed contract.
  • APFS provider cleanup uses the same Result path. Drop/cache keep best-effort unmount.
  • Does not close ROADMAP B2/B3/B4 or unlock Windows/macOS :ro host denial.

Test plan

  • cargo test -p a3s-box-runtime --lib rootfs_unmount_for_reuse
  • cargo test -p a3s-box-cli --lib cleanup::
  • cargo check -p a3s-box-cli -p a3s-box-sdk --lib
  • Hosted CI

Product stop/remove and APFS provider cleanup use unmount_box_rootfs_for_reuse so a still-attached macOS APFS image cannot invent clean teardown. Drop and cache paths keep best-effort unmount. Does not flip B2/B3/B4.

Co-authored-by: Cursor <[email protected]>
@emigmo
emigmo merged commit 636c2d1 into main Sep 18, 2026
2 of 7 checks passed
@emigmo
emigmo deleted the fix/fail-closed-rootfs-unmount branch September 18, 2026 05:59
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.

2 participants