Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Detect if Erase-Install is running a OS major Upgrade and quit super #163

Closed
master-vodawagner opened this issue Oct 31, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@master-vodawagner
Copy link
Contributor

master-vodawagner commented Oct 31, 2023

This is a niche area but currently we use Erase-Install to handle OS major upgrades rather than Super, we've come across a niche area whereby Erase-Install is running the upgrade to Sonoma (as an example), Apple then release a minor update so Super kicks in.

Super finds the Install macOS Sonoma.app file and deletes it which then causes Erase-Install to hang in fullscreen mode. I solved this in our fork'd copy of Super V3 with the below code but wondered if something could be added to Super V4 possibly?

# Checking if Erase-Install is running an macOS upgrade
ps -eaf | grep osinstallersetupd | grep -v grep
eraseInstallStatus=$(echo $?)

if [[ "$eraseInstallStatus" == 0 ]]; then
	sendToLog "Startup: Graham Pugh's Erase-Install programme appears to be running an upgrade of macOS."
	sendToLog "Startup: To avoid conflicting results of updates/upgrades Super will quit and try again later."
	sendToLog "**** S.U.P.E.R.M.A.N. $superVERSION EXIT ****"
	exit 0
@master-vodawagner master-vodawagner changed the title FR: Detect if Erase-Install process is running and OS major Upgrade and quit super FR: Detect if Erase-Install is running and OS major Upgrade and quit super Oct 31, 2023
@master-vodawagner master-vodawagner changed the title FR: Detect if Erase-Install is running and OS major Upgrade and quit super FR: Detect if Erase-Install is running a OS major Upgrade and quit super Oct 31, 2023
@Macjutsu Macjutsu added the enhancement New feature or request label Oct 31, 2023
@Macjutsu
Copy link
Owner

I'm closing this because it would also detect if the installer is running via another process including super itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants