aws / ec2-macos-init

EC2 macOS Init is the launch daemon used to initialize Mac instances within EC2.
https://aws.amazon.com/ec2/instance-types/mac/
Apache License 2.0
150 stars 19 forks source link

brew is missing after imaging #27

Closed tyen-brex closed 1 year ago

tyen-brex commented 1 year ago

Created a custom image from the ARM macOS monterey 12.6.1 image. After creating a new instance the brew utility is no longer present

sh-3.2$ ls -la /usr/local/bin
total 0
drwxr-xr-x  3 root  wheel   96 Nov  2 00:20 .
drwxr-xr-x  5 root  wheel  160 Nov  2 00:20 ..
lrwxr-xr-x  1 root  wheel   33 Nov  2 00:20 ec2-macos-init -> /usr/local/libexec/ec2-macos-init
okudajun commented 1 year ago

Hello @tyen-brex,

Homebrew chose the default installation path as /opt/homebrew when they started supporting macOS for Apple Silicon, and AWS's macOS ARM64 AMIs also use the path. Please find brew command under /opt/homebrew.

tyen-brex commented 1 year ago

Thanks! I missed it