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

[BUG] #510

Closed GabeShack closed 3 months ago

GabeShack commented 3 months ago

Describe the bug After switching our erase install commands to push 14.5, all of our erases are getting hung up on the "Erasing OS" stage

To Reproduce Ive included the erase-install launcher that we are using with this policy.

Expected behavior Before we made this change we had all the same commands except with 13.6.6 instead of 14.5 and the erase worked normally.

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:

2024-06-11 11:21:54 | v34.0 | [log_rotate] Finished rotating logs in /Library/Management/erase-install/log

2024-06-11 11:21:54 | v34.0 | [erase-install] v34.0 script execution started: Tue Jun 11 11:21:54 EDT 2024

2024-06-11 11:21:54 | v34.0 | [erase-install] Arguments provided: --erase --fs --version 14.5 --check-power --overwrite --clear-firmware --set-securebootlevel
2024-06-11 11:21:54 | v34.0 | [erase-install] System version: 13.6.1 (Build: 22G313)
2024-06-11 11:21:55 | v34.0 | [check_for_swiftdialog_app] swiftDialog v2.2.1.4591 is installed (/Library/Application Support/Dialog/Dialog.app)
2024-06-11 11:21:55 | v34.0 | [check_for_swiftdialog_app] Creating dialog log (/var/tmp/dialog.zA9)...
2024-06-11 11:21:55 | v34.0 | [erase-install] Caffeinating this script (pid=85452)
2024-06-11 11:21:55 | v34.0 | [check_free_space] OK - 159 GB free/purgeable disk space detected
2024-06-11 11:21:55 | v34.0 | [erase-install] Looking for existing installer app or pkg
2024-06-11 11:21:55 | v34.0 | [find_existing_installer] No valid installer found.
2024-06-11 11:21:55 | v34.0 | [erase-install] Running on architecture i386
2024-06-11 11:21:55 | v34.0 | [check_power_status] OK - AC power detected
2024-06-11 11:21:55 | v34.0 | [get_default_dialog_args] Invoking fullscreen dialog
2024-06-11 11:21:56 | v34.0 | [check_for_mist] mist-cli v2.0 is installed (/usr/local/bin/mist)
┌──────────────────┐
│ UPDATE AVAILABLE │
└──────────────────┘
  ├─ There is a mist update available (current version: 2.0, latest version: 2.1)
  ├─ Visit https://github.com/ninxsoft/mist-cli to grab the latest release of mist
┌──────────────────┐
│ INPUT VALIDATION │
└──────────────────┘
  ├─ Search only for latest (first) result will be 'false'...
  ├─ Include betas in search results will be 'false'...
  ├─ Only include compatible installers will be 'true'...
  ├─ Export path will be '/Library/Management/erase-install/mist-list.json'...
  ├─ Export path file extension is valid...
  ├─ Output type will be 'ascii'...
┌────────┐
│ SEARCH │
└────────┘
  ├─ Searching for macOS Installer versions...
  ├─ Exported list as JSON: '/Library/Management/erase-install/mist-list.json'
  └─ Found 13 macOS Installer(s) available for download

┌────────────┬────────────────┬─────────┬─────────┬──────────┬────────────┬────────────┐
│ IDENTIFIER │ NAME           │ VERSION │ BUILD   │ SIZE     │ DATE       │ COMPATIBLE │
├────────────┼────────────────┼─────────┼─────────┼──────────┼────────────┼────────────┤
│ 062-01946  │ macOS Sonoma   │ 14.5    │ 23F79   │ 13.69 GB │ 2024-05-20 │ True       │
│ 052-77516  │ macOS Sonoma   │ 14.4.1  │ 23E224  │ 13.63 GB │ 2024-04-01 │ True       │
│ 052-62010  │ macOS Sonoma   │ 14.4    │ 23E214  │ 13.63 GB │ 2024-03-07 │ True       │
│ 052-96247  │ macOS Ventura  │ 13.6.7  │ 22G720  │ 12.22 GB │ 2024-05-20 │ True       │
│ 052-64249  │ macOS Ventura  │ 13.6.6  │ 22G630  │ 12.22 GB │ 2024-04-01 │ True       │
│ 052-60128  │ macOS Ventura  │ 13.6.5  │ 22G621  │ 12.22 GB │ 2024-03-07 │ True       │
│ 052-96238  │ macOS Monterey │ 12.7.5  │ 21H1222 │ 12.41 GB │ 2024-05-20 │ True       │
│ 052-60131  │ macOS Monterey │ 12.7.4  │ 21H1123 │ 12.42 GB │ 2024-03-18 │ True       │
│ 042-45246  │ macOS Big Sur  │ 11.7.10 │ 20G1427 │ 12.42 GB │ 2023-09-11 │ True       │
│ 001-68446  │ macOS Catalina │ 10.15.7 │ 19H15   │ 08.75 GB │ 2020-11-11 │ True       │
│ 001-51042  │ macOS Catalina │ 10.15.7 │ 19H2    │ 08.75 GB │ 2020-09-24 │ True       │
│ 001-36801  │ macOS Catalina │ 10.15.6 │ 19G2021 │ 08.75 GB │ 2020-08-12 │ True       │
│ 061-86291  │ macOS Catalina │ 10.15.3 │ 19D2064 │ 08.69 GB │ 2020-03-23 │ True       │
└────────────┴────────────────┴─────────┴─────────┴──────────┴────────────┴────────────┘

2024-06-11 11:21:58 | v34.0 | [run_mist] Selected version (14.5) is the same as or newer than the system (13.6.1), proceeding...
2024-06-11 11:21:58 | v34.0 | [run_mist] Checking that selected version 14.5 is available
2024-06-11 11:21:58 | v34.0 | [run_mist] Setting mist to only list compatible installers

2024-06-11 11:21:58 | v34.0 | [run_mist] This command is now being run:

2024-06-11 11:21:58 | v34.0 | mist download installer 14.5 application --application-name Install %NAME%.app --output-directory /Applications --compatible --no-ansi
┌──────────────────┐
│ UPDATE AVAILABLE │
└──────────────────┘
  ├─ There is a mist update available (current version: 2.0, latest version: 2.1)
  ├─ Visit https://github.com/ninxsoft/mist-cli to grab the latest release of mist
┌──────────────────┐
│ INPUT VALIDATION │
└──────────────────┘
  ├─ User is 'root'...
  ├─ Download search string will be '14.5'...
  ├─ Include betas in search results will be 'false'...
  ├─ Only include compatible installers will be 'true'...
  ├─ Cache downloads will be 'false'...
  ├─ Output directory will be '/Applications'...
  ├─ Temporary directory will be '/private/tmp/com.ninxsoft.mist'...
  ├─ Force flag has not been set, existing files will not be overwritten...
  ├─ Application name will be 'Install %NAME%.app'...
┌────────┐
│ SEARCH │
└────────┘
  ├─ Searching for macOS download '14.5'...
  ├─ Found [062-01946] macOS Sonoma 14.5 (23F79) [2024-05-20]
┌───────┐
│ SETUP │
└───────┘
  ├─ Creating new temporary directory '/private/tmp/com.ninxsoft.mist/062-01946'...
┌──────────┐
│ DOWNLOAD │
└──────────┘
  ├─ [ 1 / 7 ] 062-01946.English.dist.......... [  0000  B /  0000  B (00.00%) ]
  ├─ [ 1 / 7 ] 062-01946.English.dist.......... [ 10.31 KB / 10.31 KB (100.0%) ]
  ├─ [ 1 / 7 ] 062-01946.English.dist.......... [ 10.31 KB / 10.31 KB (100.0%) ]
  │            Verifying...
  │            Verifying... ✓✓✓
  ├─ [ 2 / 7 ] BuildManifest.plist............. [  0000  B / 10.08 MB (00.00%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............ [ 149.50 KB / 10.08 MB (01.48%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............ [ 218.40 KB / 10.08 MB (02.17%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............ [ 308.10 KB / 10.08 MB (03.06%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............ [ 421.20 KB / 10.08 MB (04.18%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............ [ 595.84 KB / 10.08 MB (05.91%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............ [ 685.49 KB / 10.08 MB (06.80%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.07 MB / 10.08 MB (10.63%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.20 MB / 10.08 MB (11.93%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.28 MB / 10.08 MB (12.75%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.35 MB / 10.08 MB (13.40%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.43 MB / 10.08 MB (14.21%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.51 MB / 10.08 MB (15.03%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.74 MB / 10.08 MB (17.23%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.82 MB / 10.08 MB (18.04%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 01.97 MB / 10.08 MB (19.58%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 02.07 MB / 10.08 MB (20.55%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 02.15 MB / 10.08 MB (21.29%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 02.23 MB / 10.08 MB (22.10%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 02.38 MB / 10.08 MB (23.64%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 02.47 MB / 10.08 MB (24.45%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 02.55 MB / 10.08 MB (25.27%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 02.62 MB / 10.08 MB (26.00%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 02.82 MB / 10.08 MB (27.95%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 02.91 MB / 10.08 MB (28.84%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 02.99 MB / 10.08 MB (29.66%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 03.07 MB / 10.08 MB (30.47%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 03.15 MB / 10.08 MB (31.20%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 03.23 MB / 10.08 MB (32.02%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 03.39 MB / 10.08 MB (33.64%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 03.46 MB / 10.08 MB (34.37%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 03.55 MB / 10.08 MB (35.18%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 03.72 MB / 10.08 MB (36.89%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 03.80 MB / 10.08 MB (37.71%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 03.90 MB / 10.08 MB (38.68%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 03.97 MB / 10.08 MB (39.41%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 04.05 MB / 10.08 MB (40.22%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 04.14 MB / 10.08 MB (41.03%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 04.29 MB / 10.08 MB (42.58%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 04.37 MB / 10.08 MB (43.39%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 04.46 MB / 10.08 MB (44.21%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 04.61 MB / 10.08 MB (45.75%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 04.69 MB / 10.08 MB (46.56%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 04.77 MB / 10.08 MB (47.29%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 04.85 MB / 10.08 MB (48.11%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 05.00 MB / 10.08 MB (49.65%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 05.09 MB / 10.08 MB (50.46%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 05.17 MB / 10.08 MB (51.27%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 05.24 MB / 10.08 MB (52.01%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 05.41 MB / 10.08 MB (53.63%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 05.49 MB / 10.08 MB (54.45%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 05.56 MB / 10.08 MB (55.17%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 05.73 MB / 10.08 MB (56.80%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 05.80 MB / 10.08 MB (57.53%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 05.88 MB / 10.08 MB (58.35%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 05.96 MB / 10.08 MB (59.16%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 06.05 MB / 10.08 MB (60.05%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 06.22 MB / 10.08 MB (61.67%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 06.31 MB / 10.08 MB (62.57%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 06.39 MB / 10.08 MB (63.38%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 06.47 MB / 10.08 MB (64.20%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 06.55 MB / 10.08 MB (65.01%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 06.72 MB / 10.08 MB (66.71%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 06.82 MB / 10.08 MB (67.61%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 06.91 MB / 10.08 MB (68.59%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 07.00 MB / 10.08 MB (69.40%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 07.08 MB / 10.08 MB (70.21%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 07.23 MB / 10.08 MB (71.75%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 07.31 MB / 10.08 MB (72.56%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 07.39 MB / 10.08 MB (73.30%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 07.47 MB / 10.08 MB (74.11%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 07.63 MB / 10.08 MB (75.65%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 07.71 MB / 10.08 MB (76.47%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 07.82 MB / 10.08 MB (77.60%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 07.90 MB / 10.08 MB (78.34%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 07.98 MB / 10.08 MB (79.15%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 08.15 MB / 10.08 MB (80.85%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 08.23 MB / 10.08 MB (81.67%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 08.31 MB / 10.08 MB (82.48%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 08.40 MB / 10.08 MB (83.37%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 08.50 MB / 10.08 MB (84.35%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 08.60 MB / 10.08 MB (85.33%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 08.69 MB / 10.08 MB (86.22%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 08.77 MB / 10.08 MB (87.03%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 08.93 MB / 10.08 MB (88.58%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 09.01 MB / 10.08 MB (89.39%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 09.09 MB / 10.08 MB (90.20%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 09.17 MB / 10.08 MB (91.01%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 09.33 MB / 10.08 MB (92.56%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 09.41 MB / 10.08 MB (93.37%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 09.50 MB / 10.08 MB (94.26%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 09.58 MB / 10.08 MB (95.08%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 09.76 MB / 10.08 MB (96.78%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 09.84 MB / 10.08 MB (97.60%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 09.92 MB / 10.08 MB (98.41%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 09.99 MB / 10.08 MB (99.14%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 10.08 MB / 10.08 MB (100.0%) ]
  ├─ [ 2 / 7 ] BuildManifest.plist............. [ 10.08 MB / 10.08 MB (100.0%) ]
  │            Verifying...
  │            Verifying... ✓✓✓
  ├─ [ 3 / 7 ] Info.plist...................... [  0000  B / 05.43 KB (00.00%) ]
  ├─ [ 3 / 7 ] Info.plist...................... [ 05.43 KB / 05.43 KB (100.0%) ]
  ├─ [ 3 / 7 ] Info.plist...................... [ 05.43 KB / 05.43 KB (100.0%) ]
  │            Verifying...
  │            Verifying... ✓✓✓
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [  0000  B / 13.67 GB (00.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg........... [ 136.76 MB / 13.67 GB (01.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg........... [ 273.48 MB / 13.67 GB (02.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg........... [ 410.29 MB / 13.67 GB (03.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg........... [ 547.00 MB / 13.67 GB (04.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg........... [ 683.75 MB / 13.67 GB (05.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg........... [ 820.48 MB / 13.67 GB (06.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg........... [ 957.27 MB / 13.67 GB (07.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 01.09 GB / 13.67 GB (08.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 01.23 GB / 13.67 GB (09.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 01.37 GB / 13.67 GB (10.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 01.50 GB / 13.67 GB (11.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 01.64 GB / 13.67 GB (12.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 01.78 GB / 13.67 GB (13.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 01.91 GB / 13.67 GB (14.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 02.05 GB / 13.67 GB (15.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 02.19 GB / 13.67 GB (16.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 02.32 GB / 13.67 GB (17.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 02.46 GB / 13.67 GB (18.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 02.60 GB / 13.67 GB (19.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 02.73 GB / 13.67 GB (20.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 02.87 GB / 13.67 GB (21.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 03.01 GB / 13.67 GB (22.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 03.14 GB / 13.67 GB (23.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 03.28 GB / 13.67 GB (24.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 03.42 GB / 13.67 GB (25.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 03.56 GB / 13.67 GB (26.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 03.69 GB / 13.67 GB (27.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 03.83 GB / 13.67 GB (28.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 03.97 GB / 13.67 GB (29.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 04.10 GB / 13.67 GB (30.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 04.24 GB / 13.67 GB (31.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 04.38 GB / 13.67 GB (32.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 04.51 GB / 13.67 GB (33.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 04.65 GB / 13.67 GB (34.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 04.79 GB / 13.67 GB (35.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 04.92 GB / 13.67 GB (36.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 05.06 GB / 13.67 GB (37.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 05.20 GB / 13.67 GB (38.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 05.33 GB / 13.67 GB (39.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 05.47 GB / 13.67 GB (40.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 05.61 GB / 13.67 GB (41.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 05.74 GB / 13.67 GB (42.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 05.88 GB / 13.67 GB (43.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 06.02 GB / 13.67 GB (44.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 06.15 GB / 13.67 GB (45.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 06.29 GB / 13.67 GB (46.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 06.43 GB / 13.67 GB (47.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 06.56 GB / 13.67 GB (48.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 06.70 GB / 13.67 GB (49.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 06.84 GB / 13.67 GB (50.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 06.97 GB / 13.67 GB (51.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 07.11 GB / 13.67 GB (52.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 07.25 GB / 13.67 GB (53.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 07.38 GB / 13.67 GB (54.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 07.52 GB / 13.67 GB (55.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 07.66 GB / 13.67 GB (56.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 07.79 GB / 13.67 GB (57.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 07.93 GB / 13.67 GB (58.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 08.07 GB / 13.67 GB (59.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 08.20 GB / 13.67 GB (60.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 08.34 GB / 13.67 GB (61.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 08.48 GB / 13.67 GB (62.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 08.61 GB / 13.67 GB (63.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 08.75 GB / 13.67 GB (64.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 08.89 GB / 13.67 GB (65.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 09.02 GB / 13.67 GB (66.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 09.16 GB / 13.67 GB (67.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 09.30 GB / 13.67 GB (68.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 09.44 GB / 13.67 GB (69.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 09.57 GB / 13.67 GB (70.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 09.71 GB / 13.67 GB (71.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 09.85 GB / 13.67 GB (72.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 09.98 GB / 13.67 GB (73.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 10.12 GB / 13.67 GB (74.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 10.26 GB / 13.67 GB (75.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 10.39 GB / 13.67 GB (76.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 10.53 GB / 13.67 GB (77.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 10.67 GB / 13.67 GB (78.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 10.80 GB / 13.67 GB (79.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 10.94 GB / 13.67 GB (80.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 11.08 GB / 13.67 GB (81.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 11.21 GB / 13.67 GB (82.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 11.35 GB / 13.67 GB (83.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 11.49 GB / 13.67 GB (84.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 11.62 GB / 13.67 GB (85.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 11.76 GB / 13.67 GB (86.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 11.90 GB / 13.67 GB (87.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 12.03 GB / 13.67 GB (88.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 12.17 GB / 13.67 GB (89.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 12.31 GB / 13.67 GB (90.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 12.44 GB / 13.67 GB (91.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 12.58 GB / 13.67 GB (92.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 12.72 GB / 13.67 GB (93.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 12.85 GB / 13.67 GB (94.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 12.99 GB / 13.67 GB (95.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 13.13 GB / 13.67 GB (96.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 13.26 GB / 13.67 GB (97.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 13.40 GB / 13.67 GB (98.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 13.54 GB / 13.67 GB (99.00%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 13.67 GB / 13.67 GB (100.0%) ]
  ├─ [ 4 / 7 ] InstallAssistant.pkg............ [ 13.67 GB / 13.67 GB (100.0%) ]
  │            Verifying...
  │            Verifying... ✓✓✓
  ├─ [ 5 / 7 ] InstallInfo.plist............... [  0000  B /  0181  B (00.00%) ]
  ├─ [ 5 / 7 ] InstallInfo.plist............... [  0181  B /  0181  B (100.0%) ]
  ├─ [ 5 / 7 ] InstallInfo.plist............... [  0181  B /  0181  B (100.0%) ]
  │            Verifying...
  │            Verifying... ✓✓✓
  ├─ [ 6 / 7 ] MajorOSInfo.pkg................. [  0000  B / 01.41 MB (00.00%) ]
  ├─ [ 6 / 7 ] MajorOSInfo.pkg................. [ 96.20 KB / 01.41 MB (06.82%) ]
  ├─ [ 6 / 7 ] MajorOSInfo.pkg................ [ 163.80 KB / 01.41 MB (11.62%) ]
  ├─ [ 6 / 7 ] MajorOSInfo.pkg................ [ 244.40 KB / 01.41 MB (17.34%) ]
  ├─ [ 6 / 7 ] MajorOSInfo.pkg................ [ 331.50 KB / 01.41 MB (23.52%) ]
  ├─ [ 6 / 7 ] MajorOSInfo.pkg................ [ 399.10 KB / 01.41 MB (28.31%) ]
  ├─ [ 6 / 7 ] MajorOSInfo.pkg................ [ 776.49 KB / 01.41 MB (55.08%) ]
  ├─ [ 6 / 7 ] MajorOSInfo.pkg................ [ 923.39 KB / 01.41 MB (65.51%) ]
  ├─ [ 6 / 7 ] MajorOSInfo.pkg................. [ 01.29 MB / 01.41 MB (91.23%) ]
  ├─ [ 6 / 7 ] MajorOSInfo.pkg................. [ 01.38 MB / 01.41 MB (98.20%) ]
  ├─ [ 6 / 7 ] MajorOSInfo.pkg................. [ 01.41 MB / 01.41 MB (100.0%) ]
  ├─ [ 6 / 7 ] MajorOSInfo.pkg................. [ 01.41 MB / 01.41 MB (100.0%) ]
  │            Verifying...
  │            Verifying... ✓✓✓
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [  0000  B / 03.86 MB (00.00%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 81.92 KB / 03.86 MB (02.12%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................ [ 163.83 KB / 03.86 MB (04.24%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................ [ 245.75 KB / 03.86 MB (06.37%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................ [ 425.96 KB / 03.86 MB (11.04%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................ [ 605.01 KB / 03.86 MB (15.68%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................ [ 801.60 KB / 03.86 MB (20.77%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................ [ 949.05 KB / 03.86 MB (24.59%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 01.03 MB / 03.86 MB (26.74%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 01.15 MB / 03.86 MB (29.71%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 01.23 MB / 03.86 MB (31.84%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 01.31 MB / 03.86 MB (33.96%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 01.39 MB / 03.86 MB (36.08%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 01.47 MB / 03.86 MB (38.20%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 01.54 MB / 03.86 MB (39.90%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 01.64 MB / 03.86 MB (42.45%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 01.72 MB / 03.86 MB (44.57%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 01.80 MB / 03.86 MB (46.69%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 01.88 MB / 03.86 MB (48.82%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 01.97 MB / 03.86 MB (50.94%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 02.03 MB / 03.86 MB (52.64%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 02.11 MB / 03.86 MB (54.76%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 02.21 MB / 03.86 MB (57.31%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 02.29 MB / 03.86 MB (59.43%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 02.38 MB / 03.86 MB (61.55%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 02.46 MB / 03.86 MB (63.67%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 02.54 MB / 03.86 MB (65.80%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 02.61 MB / 03.86 MB (67.50%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 02.69 MB / 03.86 MB (69.62%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 02.80 MB / 03.86 MB (72.59%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 02.88 MB / 03.86 MB (74.71%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 02.97 MB / 03.86 MB (76.83%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 03.05 MB / 03.86 MB (78.96%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 03.11 MB / 03.86 MB (80.66%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 03.21 MB / 03.86 MB (83.20%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 03.29 MB / 03.86 MB (85.32%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 03.37 MB / 03.86 MB (87.44%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 03.46 MB / 03.86 MB (89.57%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 03.54 MB / 03.86 MB (91.69%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 03.60 MB / 03.86 MB (93.39%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 03.69 MB / 03.86 MB (95.51%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 03.78 MB / 03.86 MB (98.06%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 03.86 MB / 03.86 MB (100.0%) ]
  ├─ [ 7 / 7 ] UpdateBrain.zip................. [ 03.86 MB / 03.86 MB (100.0%) ]
  │            Verifying...
  │            Verifying... ✓✓✓
┌─────────┐
│ INSTALL │
└─────────┘
  ├─ Creating image '/private/tmp/com.ninxsoft.mist/062-01946/062-01946.dmg'...
  ├─ Mounting disk image at mount point '/Volumes/062-01946'...
  ├─ Creating new installer '/Volumes/062-01946/Applications/Install macOS Sonoma.app'...
  ├─ Created new installer '/Volumes/062-01946/Applications/Install macOS Sonoma.app'
┌─────────────┐
│ APPLICATION │
└─────────────┘
  ├─ Copying '/Volumes/062-01946/Applications/Install macOS Sonoma.app' to '/Applications/Install macOS Sonoma.app'...
┌──────────┐
│ TEARDOWN │
└──────────┘
  ├─ Unmounting disk image at mount point '/Volumes/062-01946'...
  └─ Deleting temporary directory '/private/tmp/com.ninxsoft.mist/062-01946'...
2024-06-11 11:32:09 | v34.0 | [run_mist] Install macOS Sonoma.app downloaded to /Applications.
2024-06-11 11:32:09 | v34.0 | [erase-install] Installer is at: /Applications/Install macOS Sonoma.app
2024-06-11 11:32:09 | v34.0 | [check_free_space] OK - 146 GB free/purgeable disk space detected

2024-06-11 11:32:09 | v34.0 | [erase-install] WARNING! Running /Applications/Install macOS Sonoma.app with eraseinstall option

2024-06-11 11:32:09 | v34.0 | [erase-install] Sending quit message to dialog log (/var/tmp/dialog.zA9)
PNG image data, 512 x 512, 8-bit/color RGBA, non-interlaced
2024-06-11 11:32:09 | v34.0 | [get_default_dialog_args] Invoking fullscreen dialog
2024-06-11 11:32:10 | v34.0 | [launch_startosinstall] This is the startosinstall command that will be used:
2024-06-11 11:32:10 | v34.0 | [launch_startosinstall] /Applications/Install\ macOS\ Sonoma.app/Contents/Resources/startosinstall --pidtosignal 85452 --agreetolicense --nointeraction --eraseinstall --allowremoval --forcequitapps 
2024-06-11 11:32:10 | v34.0 | [launch_startosinstall] Launching startosinstall...
File Doesn't Exist, Will Create: /Library/LaunchDaemons/com.github.grahampugh.erase-install.startosinstall.plist

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

Screenshot 2024-06-11 at 12 28 11 PM

erase-install 2.log

#!/bin/zsh
# shellcheck shell=bash
# shellcheck disable=SC2034,SC2296
# these are due to the dynamic variable assignments used in the localization strings

: <<DOC
erase-install-launcher.sh

This script is designed to be used as a stub for launching erase-install.sh when
deploying the standard macOS package of erase-install from within Jamf Pro.

You can simply add this script to the "Scripts" section of a Jamf Pro policy,
which will in turn launch erase-install.sh with all supplied parameters and
return its output and return code back to Jamf Pro.

You can use Jamf Pro parameters 1-10 to supply arguments to erase-install,
and you can supply multiple arguments in one Jamf Pro parameter.

The last parameter can be used to specify the location of erase-install.sh, if
you have deployed a custom version of erase-install at a different location.
DOC

script_name="erase-install-launcher"

escape_args() {
    temp_string=$(awk 'BEGIN{FS=OFS="\""} {for (i=1;i<=NF;i+=2) gsub(/ /,"§",$i)}1' <<< "$1")
    # temp_string=$(awk -F\" '{OFS="\""; for(i=2;i<NF;i+=2)gsub(/ /,"++",$i);print}' <<< "$1")
    temp_string="${temp_string//\\ /++}"
    echo "$temp_string"
}

if [[ "${11}" != "" ]]; then
    eraseinstall_path="${11}"
else
    eraseinstall_path="/Library/Management/erase-install/erase-install.sh"
fi

echo
echo "[$script_name] Launching ${eraseinstall_path} using the following arguments:"

arguments=()
count=1
for i in {4..10}; do
    eval_string="${(P)i}"
    parsed_parameter="$(escape_args "$eval_string")"

    for p in $parsed_parameter; do
        arguments+=("${p//§/ }")
    done
done

eraseinstall_args=()
for arg in "${arguments[@]}"; do
    if [[ "$arg" == "--"* ]]; then
        # replace any equals after the command with a space
        arg="${arg/=/ }"
        # if the first argument is an option (--*) then any second part should be a value, split it once more
        first_arg=$(cut -d' ' -f1 <<< "$arg")
        if [[ "$first_arg" ]]; then
            eraseinstall_args+=("$first_arg")
            echo "[$count] $first_arg"
            ((count++))
            potential_arg=$(cut -d' ' -f2- <<< "$arg")
            if [[ "$potential_arg" && ("$potential_arg" != "$first_arg") ]]; then
                eraseinstall_args+=("$potential_arg")
                echo "[$count] $potential_arg"
                ((count++))
            fi
        fi
    else
        eraseinstall_args+=("$arg")
        echo "[$count] $arg"
        ((count++))
    fi
done

echo

"${eraseinstall_path}" "${eraseinstall_args[@]}"

rc=$?

echo
echo "[$script_name] Exit ($rc)"
exit $rc
GabeShack commented 3 months ago

tempImageZCCK2F

GabeShack commented 3 months ago

this is what we are seeing on each device.

GabeShack commented 3 months ago

NEVER MIND, Im just silly. I had made a restricted software for Sonoma at one point and forgot to disable it.