Skip to content

Surface a clear error when system start cannot write app-root - #2059

Open
rogerneal wants to merge 1 commit into
apple:mainfrom
rogerneal:fix/1802-approot-writable-error
Open

Surface a clear error when system start cannot write app-root#2059
rogerneal wants to merge 1 commit into
apple:mainfrom
rogerneal:fix/1802-approot-writable-error

Conversation

@rogerneal

@rogerneal rogerneal commented Aug 3, 2026

Copy link
Copy Markdown

Summary

Closes #1802

Test plan

Tested

  • swift test --filter SystemStartAppRootTests (2/2 passed)
    • writable parent creates the directory
    • read-only parent throws a message containing app-root must be writable
  • CLI repro with a build of this branch:
    ROOT=$(mktemp -d /tmp/container-approot-ro.XXXXXX)
    chmod 555 "$ROOT"
    bin/container system start --app-root "$ROOT" --disable-kernel-install
    • Exit code 1 (not 133)
    • No Fatal error / try!
    • Error: cannot create application data directory ... app-root must be writable

Not tested

  • GitHub Actions PR build on apple/container

Replace opaque Cocoa failures with ContainerizationError messages when
creating the apiserver data directory or writing its plist under a
non-writable --app-root, and add regression tests.
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.

[Bug]: container system start crashes with fatal error when app-root directory is not writable

1 participant