Skip to content

Install macOS

  • This app is either available:
  • In user space (downloaded from the App Store)
  • In Recovery mode (the same installer version as your current macos installation)
  • As a bootable installer. You can create a bootable USB drive from the MacOS installer /Aplications/Install\ macOS\ Ventura.app/Contents/Resources/createinstallmedia --volume /Volumes/MyUsbDrive, it can then be launched from iBoot

Installation

  • The installer will ask in which volume you want to install the system

  • Can be used to reinstall the current macOS installation

  • Can be used to install a new system as a secondary macOS installation (dual boot) in a new volume
    • If you're making a second installation, create first the plain APFS volume (no encryption needed) via Disk Utility
    • You will need to set a owner for this new volume (with one of the users of the existing installation). If you want to keep then segregate, do not mark "copy account settings"

MDM bypass

  • As soon as the installation completes and the first setup appear, exit it (Command+Q) and boot into Recovery

At Recovery

  • Select the old installation volume to recover as the new one doesn't have an user yet
  • Open Terminal app
diskutil list # get the id of the new data volume
diskutil mount diskXsY # mount it
# Skip the user setup
touch '/Volumes/Vaporwave - Data/private/var/db/.AppleSetupDone'
# Enable the root user and define a password for it
node_database='/Volumes/Vaporwave - Data/private/var/db/dslocal/nodes/Default'
dscl -f "$node_database" localhost -passwd "/Local/Default/Users/root"

Logged as root user

  • Start the system and log in with the root account
  • Reject any enrollment in device management that might pop up
# Create your user
sysadminctl -addUser myself -admin -password - -adminUser root -adminPassword -

# Enable secure token for the new user (necessary for FileVault)
sysadminctl -secureTokenOn myself -password - -adminUser root -adminPassword -

Logged as admin user

# disable secure token for the root user
sysadminctl -secureTokenOff root -password - -adminUser hv -adminPassword -

# disable root account
dsenableroot -d
# enable FileVault
sudo fdesetup enable
# /etc/fstab

# Block automounting other volumes
LABEL=Macintosh\040HD none auto noauto
LABEL=Macintosh\040HD\040-\040Data none auto noauto
# /etc/hosts or /private/etc/hosts

# Block MDM server connection
0.0.0.0 iprofiles.apple.com
0.0.0.0 deviceenrollment.apple.com
0.0.0.0 mdmenrollment.apple.com
0.0.0.0 acmdm.apple.com
# verify absence of profiles
profiles status --type enrollment