Skip to content

fix: handle launchctl bootout permission errors in ensure-container-stopped.sh#1306

Open
Ronitsabhaya75 wants to merge 1 commit intoapple:mainfrom
Ronitsabhaya75:issue-1281
Open

fix: handle launchctl bootout permission errors in ensure-container-stopped.sh#1306
Ronitsabhaya75 wants to merge 1 commit intoapple:mainfrom
Ronitsabhaya75:issue-1281

Conversation

@Ronitsabhaya75
Copy link
Contributor

@Ronitsabhaya75 Ronitsabhaya75 commented Mar 10, 2026

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

fixes #1281

Right now, running brew install container fails with "Operation not permitted" because the post-install script tries to stop system domain services, which requires root access.

The Fix: Updated the script to skip the system domain when not running as root, and strictly ignore bootout errors so they don't crash the installation.

if [ "$domain" = "system" ] && [ "$uid" -ne 0 ]; then
    continue
fi

added them as co authored, tested by: @Renish-patel, @shilpan97

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

@Ronitsabhaya75 Ronitsabhaya75 marked this pull request as ready for review March 10, 2026 04:08
…topped.sh

Co-authored-by: Renish Avaiya <renishpatel2482001@gmail.com>
Co-authored-by: Shilpan Shah <Shilpan97@gmail.com>
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]: Boot-out failed: 1: Operation not permitted (Installing via hoomebrew)

1 participant