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)
-
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
Bootable Installer
- You can create a bootable USB drive from the MacOS installer
/Aplications/Install\ macOS\ Ventura.app/Contents/Resources/createinstallmedia --volume /Volumes/MyUsbDrive
- The
Bootable Installer
can then be launched from iBoot
MDM bypass
- As soon as the installation completes and the first setup appear, exit it (Command+Q) and boot into Recovery
- Once in Recovery, mount the Data partition
Recovery
# Block MDM server connection
echo "0.0.0.0 iprofiles.apple.com" >> '/Volumes/Vaporwave - Data/private/etc/hosts'
# 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"
Root user
- Start the system and log in with the root account
# 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 -
Conventional User
# Disable the root account
dsenableroot -d
# /etc/fstab
LABEL=Macintosh\040HD none auto noauto
LABEL=Macintosh\040HD\040-\040Data none auto noauto
- You may want to enable
FileVault
in system settings