Releases: grahampugh/erase-install
Releases · grahampugh/erase-install
0.19.1
- Fix for check that
--fetch-full-installer
can be used. - Dutch localizations (thanks to Thijs Vught)
0.19.0
- Output from erase-install.sh is now written to
/var/log/erase-install.sh
in addition tostdout
. - Checks that the supplied user is an admin when performing
--eraseinstall
on M1, which appears to be a requirement (not forstartosinstall
without--eraseinstall
). If it is not, it promotes the user to admin. - Checks that the supplied user is a Volume Owner on M1 (rather than merely having a Secure Token)
- Runs
diskutil apfs updatePreboot /
prior tostartosinstall
to (experimentally) address a problem seen by some user accounts that were promoted usingPrivileges.app
. - Adds localization for osascript dialogs
0.18.0
- Add
--check-power
option. Set this to check for AC power. Also--power-wait-limit
sets a time limit to wait for power (default is 60 seconds). - Merge in upstream changes to
installinstallmacos.py
. This improves download resumption.
0.17.4
0.17.3
- For Catalina and earlier, do OS validation only as far as the minor release. This allows for the mismatch between advertised build and
DTSDKBuild
(fixes Issue #53). - Fix for when
VolumeName
is notMacintosh HD
or any two-word name (fixes Issue #58). - Added exit 1 code if script exists due to not successfully downloading an installer (fixes Issue #52).
- Increase munimum disk space required to 30GB, which aligns better Apple's recommendation for macOS Big Sur (see HT211238).
0.17.2
- Testing moving
caffeinate
to the end of the script but using a second--pidtosignal
argument instartosinstall
to kill caffeinate. It is not documented that--pidtosignal
can be called multiple times, so this is experimental, but seems necessary on Big Sur as the "preparing upgrade" step is much longer than with previous OSs.
0.17.1
- Added
--test-run
option which runs everything except thestartosinstall
command. Useful for testing new workflows (test-erase-install.sh
is therefore deleted) - Moved the prompt for user details for Apple Silicon Macs up the script so users don't get prompted later.
- No longer checks to see if the user is an administrator as this is apparently not a criterion - only Secure Token matters.
- Bug fix: remove alignment flags in the jamfHelper commands to solve a product issue with jamfHelper on Apple Silicon Macs.
0.17.0
- New
--current-user
option to use the current logged in user forstartosinstall
authorisation on M1/DTK Macs. - New
--user
option to specify a user forstartosinstall
authorisation on M1/DTK Macs. - Now checks whether the specified user is an administrator.
- Now checks whether the specified user has a Secure Token.
- Now checks if the given password is correct.
- New
--no-fs
option for replacing the full-screen display with a utility window (for testing purposes). - Now quits
caffeinate
before beginningstartosinstall
. - Now correctly identifies Apple Silicon Mac Device IDs for compatibility checks.
- Now gets the installer version from
/Volumes/Shared Support/com_apple_MobileAsset_MacSoftwareUpdate/com_apple_MobileAsset_MacSoftwareUpdate.xml
as this is a more reliable build number than the one inInfo.plist
. - Now makes more reliable version comparisons using
BuildVersion
by splitting the check into more sections (AABCCDDE
instead ofAABCCCCD
). - Script version number is now displayed when running the script. I just have to remember to update it...
- added
--list-full-installers
option which runssoftwareupdate --list-full-installers
according to the seedprogram selected. test-erase-install.sh
script is now included in the installer package.
0.16.1
- Bug fix:
--auto
was being incorrectly assigned when using--os
,--build
etc.
0.16.0
- Added the
--pkg
option allowing the download of anInstallAssistant
package, utilising an update alresdy made to theinstallinstallmacos.py
fork. For Big Sur or greater only. This will probably need some more error checking. - Added the
--keep-pkg
option which prevents the deletion of the package if the--move
option is used to extract the package to/Applications
. By default, the package will be deleted on successful extraction. - Added the
--force-curl
and--no-curl
options, allowing the control of whether to downloadinstallinstallmacos.py
. This is in anticipation of a Makefile and package release oferase-install.sh
. - Added
Makefile
. This allows you to build a self-contained package containingerase-install.sh
andinstallinstallmacos.py
so that curl is not used during the run oferase-install.sh
to updateinstallinstallmacos.py
. This requiresmunkipkg
and expects to find thegrahampugh
fork ofinstallinstallmacos.py
in../macadmins-scripts
. Make sure you don't bundle in Greg Neagle's version ofinstallinstallmacos.py
inadvertently (or this script will fail). A package will be provided on GitHub for this and subsequent versions. Note thaterase-install.sh
is installed into/Library/Management/erase-install
. I deliberately have not puterase-install.sh
into the PATH. - Added the
--user
and--stdinpass
arguments when running on a Silicon Mac. Silicon Macs require an admin user and password to runstartosinstall
. - Now treats
10.x
or11
+ as major versions for OS comparisons. - Fix in
installinstallmacos.py
foros
comparisons failing where no Version is provided from the catalog.