grahampugh / erase-install

A script that automates downloading macOS installers, and optionally erasing or upgrading macOS in a single process. Watch the video!
https://grahamrpugh.com/2023/05/14/macaduk-presentation-eraseinstall.html
Apache License 2.0
845 stars 132 forks source link

Unable to download installinstallmacos.py #254

Closed kingpocket closed 2 years ago

kingpocket commented 2 years ago

I have JAMF Policies that curl the latest version of the script and it fails when attempting to install and verify installinstallmacos.py [get_installinstallmacos] Downloading installinstallmacos.py... /Library/Management/erase-install/installinstallmacos.py: FAILED shasum: WARNING: 1 computed checksum did NOT match [get_installinstallmacos] ERROR: downloaded installinstallmacos.py does not match checksum. Possible corrupted file. Deleting file. Could not download installinstallmacos.py so cannot continue.

grahampugh commented 2 years ago

Did you use --force-curl? And which version of erase-install.sh is in your Jamf server?

kingpocket commented 2 years ago

I'm always curling the latest version. This one caches the Monterey Installer into the Applications folder.

/usr/bin/curl -s https://raw.githubusercontent.com/grahampugh/erase-install/main/erase-install.sh | sudo bash /dev/stdin --force-curl --update --move

This one is attempting to cache the Ventura Beta installer, but both scripts fail at validating installinstallmacos.py due to invalid checksum.

/usr/bin/curl -s https://raw.githubusercontent.com/grahampugh/erase-install/main/erase-install.sh | sudo bash /dev/stdin --seed DeveloperSeed --os=13 --force-curl --update --move

kingpocket commented 2 years ago

I receive the same checksum error even running: /usr/bin/curl -s https://raw.githubusercontent.com/grahampugh/erase-install/main/erase-install.sh | sudo bash /dev/stdin --pkg --list

grahampugh commented 2 years ago

Sigh. I guess the checksum got messed up again. I wish I hadn't introduced that security feature :) I'll see if I can fix it.

(It's not a problem if you use the package installer that I provide)

grahampugh commented 2 years ago

OK it should be working now. Something weird happened with git that I don't understand, but the version bump from the v26.1-rc branch was not merged into the main branch. I had to manually update the file in the main branch.

kingpocket commented 2 years ago

That seems to have done the tick. Thank you. I also never tried the pkg version before and just modified my policies accordingly.