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
834 stars 131 forks source link

trying to use jamf launcher with fetch full installer #488

Closed mrmte closed 6 months ago

mrmte commented 6 months ago

Describe the bug trying to add a variable to the jamf launch script to get the full installer --fetch-full-installer rather than mist and upgrade macos but It errors out

To Reproduce $4 = --current-user $5 = --reinstall $6 = --version=14.3.1 $7 = --check-power $8 = --no-fs $9 = --rebootdelay 300 $10 = --cleanup-after-use $11= --fetch-full-installer

Expected behavior to download the installer and continue the upgrade

Code/log output Please supply the full command used, and if applicable, add full output from Terminal or from /var/log/erase-install.log. Don't post a partial log - I need the whole thing. Either upload the log as a file, or paste the output in a code block like this:

[erase-install-launcher] Starting script "--fetch-full-installer" --current-user --reinstall --version=14.3.1 --check-power --no-fs --rebootdelay 300 --cleanup-after-use
/Library/Application Support/JAMF/tmp/erase-install-launcher - Sonoma: line 96: --fetch-full-installer: command not found
[erase-install-launcher] Exit (127)

Screenshots

Screenshot 2024-02-21 at 13 23 35

Environment (please complete the following information):

Additional context Add any other context about the problem here.

mrmte commented 6 months ago

im now trying the following --current-user --reinstall --fetch-full-installer --os=14 --no-fs --rebootdelay 300 --cleanup-after-use

i get the credentials prompt but in the logs it says

Could not obtain installer information using softwareupdate --list-full-installers. Cannot Continue.

grahampugh commented 6 months ago

You can't use Parameter 11 - see the script for details on how to use it.

As for the second comment, check if the softwareupdate command is working on your machine. If not, I would recommend removing the --fetch-full-installer option.

mrmte commented 6 months ago

Yeah I saw that and on the second attempt removed $11. Software update working no issues on my machine getting the full installer. I see you have the same bug logged you were able to reproduce.

grahampugh commented 6 months ago

You're right. I had forgotten about that, and yes it's the same issue. I've found the issue and it will be fixed in the next release.

grahampugh commented 6 months ago

https://github.com/grahampugh/erase-install/releases/tag/v33.0

grahampugh commented 6 months ago

Fixed in v33.0