erase-install

A script that automates downloading macOS installers, and optionally erasing or upgrading macOS in a single process. Watch the video!

APACHE-2.0 License

Stars
836
Committers
24

Bot releases are hidden (Show)

erase-install - 0.15.6

Published by grahampugh almost 4 years ago

  • Fixed comparison of build numbers when checking the installed build is newer than the build in the downloaded installer.
erase-install - 0.15.5

Published by grahampugh about 4 years ago

  • Version comparisons are now done based on BuildVersion instead of ProductVersion so as not to rely on Major/Minor/Point comparisons (thanks to Greg Neagle's MacSysAdmin 2020 presentation about Big Sur for tips on this).
  • Code clean up using ShellCheck.
erase-install - 0.15.4

Published by grahampugh about 4 years ago

  • Added --pythonpath option so that you can select a different python with which to run installinstallmacos.py. Default is $(which python).
  • installinstallmacos.py now has a --warnings option about whether to show the Notes/Warnings in the list output or not. This has been hard-coded into erase-install.sh to maintain current behaviour.
erase-install - 0.15.3

Published by grahampugh about 4 years ago

  • Fixed another small piece of failed logic around the check for whether there is already an installer which was finding other apps with macOS in the name. Now, only apps with Install macOS*.app will be found.
erase-install - 0.15.2

Published by grahampugh over 4 years ago

  • Fixed some failed logic around the check for whether there is already an installer in the /Applications folder which was erroneously also looking in other locations.
erase-install - 0.15.1

Published by grahampugh over 4 years ago

  • Parameters can now be supplied as --argument value as an alternative to --argument=value to provide more consistency with the included tools (installinstallmacos.py and softwareupdate).
erase-install - 0.15.0

Published by grahampugh over 4 years ago

  • Adds --allowremoval option to the startosinstall command by default. This is an undocumented flag which is required under certain circumstances where there are backup files on the system disk.
erase-install - 0.14.0

Published by grahampugh over 4 years ago

  • Adds --replace_invalid option for the option to overwrite a cached installer if it is not valid for use with --erase or --reinstall.
  • Adds --update option for the option to overwrite a cached installer if a newer installer is available.
erase-install - 0.13.0

Published by grahampugh over 4 years ago

  • Adds --preservecontainer option for workflows that need to retain a container when performing eraseinstall.
  • Adds additional flags to caffeinate to attempt to more robustly prevent device sleeping.
  • Fix for missing heading in the full screen display of the --reinstall option.
  • Added a test script tests/test-erase-install.sh for testing out functionality.
erase-install - 0.12.1

Published by grahampugh over 4 years ago

  • Use --forcequitapps when using the macOS Catalina installer, rather than just when running on a macOS Catalina client (issue #25).
erase-install - 0.12.0

Published by grahampugh over 4 years ago

  • Removed downloaded OS validity check for modes where the installer is not required for reinstall or eraseinstall, to prevent unnecessary exit failures.
  • Fixed a problem preveting --move from working when overwriting a valid installer.
  • Other small bugfixes.
erase-install - 0.11.1

Published by grahampugh over 4 years ago

  • Restricted the add forcequitapps install_args option to macOS 10.15 or greater, as this is not functional with older versions (#35). Thanks to '@ahousseini' for the contribution.
erase-install - 0.11.0

Published by grahampugh over 4 years ago

  • Added the --sameos option, so you can have a single command which will always try to reinstall whatever macOS (major) version is currently installed on the host
erase-install - 0.10.1

Published by grahampugh almost 5 years ago

  • Removed check that a user is logged in before proceeding with startosinstall - apparently not necessary after all, and caused at least one user's workflow to break (#33).
erase-install - 0.10.0

Published by grahampugh almost 5 years ago

  • Add a check that there is enough disk space before proceeding
  • Added --forcequitapps argument for 10.15 and above
  • Check that a user is logged in before proceeding with startosinstall
  • Improved find commands when checking that there is a mounted installer
  • Improved German descriptions for reinstallation
  • Improved checks for successful downloads from the --fetch_full_installer option

Thanks to '@ahousseini' for various contributions to this release

erase-install - 0.9.1

Published by grahampugh almost 5 years ago

Bugfix - Move a comment that states that --fetch-full-installer is available to the correct place (#31)

erase-install - 0.9.0

Published by grahampugh about 5 years ago

Added support for softwareupdate --fetch-full-installer and seedutil for clients running macOS 10.15 or greater.

Run with --fetch-full-installer option to use softwareupdate instead of installinstallmacos.py to obtain your installer. Most modes are still compatible with this option, such as --overwrite, --reinstall, --erase. --move is not supported with this option at this time: the installer will be downloaded straight to /Applications.

When the --seedprogram option is used, the script will change the seed program using seedutil. At this time, it does not revert the seed program setting after use, so bear this in mind. The output shows which seed program you are in.

erase-install - 0.8.0

Published by grahampugh about 5 years ago

  • Fixed caffeinate (forgot to make it a background process)
  • Added 'Confirm' option for erasing. Thanks to '@ryan-alectrona' for the contribution.
erase-install - v0.7.0

Published by grahampugh over 5 years ago