Bot releases are visible (Hide)
--cloneuser
option.icons
directory is created when running as standalone script.Since the package on this site is not signed, if you download this package from a browser and try to install it from Finder on a Mac running macOS Sequoia, it will fail to install, even if running Ctrl-Click. To solve this, do one of these:
sudo installer -tgt / -pkg /path/to/erase-install-35.0.pkg
xattr -d com.apple.quarantine /path/to/erase-install-35.0.pkg
Published by grahampugh 4 months ago
--min-battery
option which, in conjunction with --check-power
allows to set a minimum battery percentage, above which the power check is ignored. For example, --check power --min-battery 30
sets the minimum percentage to 30%. The minimum allowed is 15% (addresses #455, thanks @PhillyPhoto). --check power
without --min-battery
still requires AC power.--language
option to give the ability to override the language of the dialog windows - the default is either the system language or English if there is no translation of the system language available. Now you can set the language to any of the available translations using the short language codes, which are en, de, fr, nl, es, pt, ja. For example, --language de
or --language=de
will set the language to German regardless of the system language setting.https://swscan.apple.com/content/catalogs/others/index-15seed-15-14-13-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
, which can be used with --beta
and --catalog 15
to obtain macOS Sequoia beta installers. Note that this will be replaced with the production macOS 15 catalog once it is published.--pkg
mode.Since the package on this site is not signed, if you download this package and try to install it from Finder on a Mac running macOS Sonoma, it will fail to install, even if running Ctrl-Click. To solve this, do either of these:
sudo installer -tgt / -pkg /path/to/erase-install-35.0.pkg
xattr -d com.apple.quarantine /path/to/erase-install-35.0.pkg
Published by grahampugh 6 months ago
Published by grahampugh 7 months ago
--os
and --sameos
options, which is broken in 33.0.Published by grahampugh 9 months ago
--credentials=XYZ
option (previously only --credentials XYZ
worked) (thanks @allanp81).--parameter="value"
option.Published by grahampugh 9 months ago
--credentials=XYZ
option (previously only --credentials XYZ
worked) (thanks @allanp81).--parameter="value"
option.Published by grahampugh 11 months ago
com_apple_MobileAsset_MacSoftwareUpdate.xml
file within the Shared Support.dmg
. This should prevent installers that were not obtained using erase-install from running if they are not compatible with the system.Published by grahampugh about 1 year ago
--os
searches will search for the relevant version name rather than number, to avoid a bug in mist-cli that may result in download an inappropriate installer if the chosen major OS is not available.seedutil
on 13.4 or newer when using the --ffi
option as it doesn't work any more.Published by grahampugh about 1 year ago
--os
searches will search for the relevant version name rather than number, to avoid a bug in mist-cli that may result in download an inappropriate installer if the chosen major OS is not available.seedutil
on 13.4 or newer when using the --ffi
option as it doesn't work any more.Published by grahampugh about 1 year ago
--beta
option.Published by grahampugh about 1 year ago
Published by grahampugh over 1 year ago
zsh
.erase-install.sh --list
safely as the current user (without sudo); logs and files are written to a temporary location.mist
to use a caching server (addresses #406). Add the following option:
--caching-server https://YOUR_URL_HERE
set-credentials.sh
to generate the base64-encoded credentials.printf "%s:%s" "<USERNAME>" "<PASSWORD>" | iconv -t ISO-8859-1 | base64 -i -
--credentials ENCODEDCREDENTIALS
--very-insecure-mode
(this is required in addition to the --credentials
option!).--update
no longer ignores --sameos
(fixes #407).erase-install-launcher.sh
is also converted to zsh.erase-install-launcher.sh
should now respect parameters that have spaces in them, such as commands called by the --postinstall-command
option.--test-run
mode.Published by grahampugh over 1 year ago
Published by grahampugh over 1 year ago
--os
can now be used along with --fetch-full-installer
.mist
is now somewhat reduced due to the use of the no-ansi
mode.--quiet
option to prevent large output from mist. Note that with this mode enabled, there is no download progress bar, since the output is required to read the download progress.--list
with --fetch-full-installer
(addresses #347).--skip-validation
functionality.--version
along with --fetch-full-installer
.mist
did not correctly output (addresses #357).Published by grahampugh over 1 year ago
--check-fmm
option to prompt the user to disable Find My Mac if it is enabled (in --erase
mode only). The default wait limit is 5 minutes before failing. This can be altered using a new --fmm-wait-limit
option.--fs
mode is used, the fullscreen preparation window now remains until the end of the reboot delay period.Published by grahampugh over 1 year ago
--cache-downloads
option. In 28.0, mist
cached downloads into /private/tmp/com.ninxsoft.mist
. This is now optional.--set-securebootlevel
option (in --erase
mode only) uses the command bputil -f -u $current_user -p $account_password
to ensure that the OS is reset to a high secure boot level after reinstallation (thanks to @mvught).--clear-firmware
option (in --erase
mode only) uses the command nvram -c
to ensure that the OS is reset to a high secure boot level after reinstallation (thanks to @mvught).erase-install
now reports a non-zero exit code (143 to be exact) when it is being abnormally terminated (e.g. by pressing CTRL+C or getting terminated by SIGTERM). Previously it would return the exit code of the last command being executed at time of termination, which could be non-zero or zero depending on the specific circumstances, which then could have been reported as successful execution in a Jamf policy. This change will make it easier to discover such errors. The exit code of the last executed command will be logged in addition to returning 143 to facilitate debugging (#318, thanks @cvgs).Bugfixes:
mist
result is now correctly interpreted when checking for a newer version.--update
option now triggers an invalid installer to be overwritten.Published by grahampugh over 1 year ago
installinstallmacos.py
have been replaced with calls to mist
. Minimum OS requirement for this is macOS 10.15.pkg
or an app
. Downlaoding of a sparseimage
has been discontinued, though the script will continue to search for them to allow for upgrade from earlier versions of erase-install without having to re-download the installer./Library/Management/erase-install/log/erase-install.log
--silent
mode. The script can now be run without any dialogues. On Apple Silicon, this requires the use of the keychain method to provide credentials. Minimum OS requirement for this is macOS 10.15.security create-keychain -P NAME_OF_KEYCHAIN
- this will prompt you to create a password for the keychain. The keychain will be stored in ~/Library/Keychains
. NAME_OF_KEYCHAIN
must match the value you give to the --kc
key. The password you create must match the value you give to the --kc-pass
key.security add-generic-password -s NAME_OF_SERVICE -a NAME_OF_USER -w PASSWORD NAME_OF_KEYCHAIN
- NAME_OF_SERVICE
must match the value you provide to the --kc-service
key. NAME_OF_USER
and PASSWORD
must be the valid credentials of an account on the computer with Volume Ownership.Published by grahampugh over 1 year ago
installinstallmacos.py
): version comparisons are now done with the python module packaging.version.LegacyVersion
, as parse_version
proved unreliable.Published by grahampugh almost 2 years ago
--update
, or --replace-invalid
are used and the version cannot be obtained from the sparseimage, the installer should be downloaded again. This also fixes --overwrite
which was not working where an existing sparseimage was present.--no-timeout
option which extends the timeout period to 24h.Published by grahampugh almost 2 years ago
installinstallmacos.py
, update checksum in erase-install.sh
.