munki / macadmin-scripts

Scripts of possible interest to macOS admins
Other
2.33k stars 523 forks source link

Failed to extract AssetData/boot/Firmware/Manifests/InstallerBoot/* from update bundle #128

Open PeterSuh-Q3 opened 4 days ago

PeterSuh-Q3 commented 4 days ago

Hello.

I am creating a boot by selecting the Sequoia 15.1 27 image.

The dmg file is created without any problem when downloaded.

After copying .app to Application, I created a boot with the following script.

Other images (Big Sur ~ Sonoma) were created without any problem up to the MacOS installation boot.

Sequoia 24 and 27 images show the same 15.1 version. Should I use 24 instead of 27?

(base) yousuk@iMac ~ % ./down_macos.sh
Password:
Downloading https://swscan.apple.com/content/catalogs/others/index-15-14-13-12-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog...
Downloading https://swcdn.apple.com/content/downloads/41/23/061-26578-A_FF0C6M87LS/ylvl0phx6uy3i444qt9p57n8wz0xnylmd9/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/41/23/061-26578-A_FF0C6M87LS/ylvl0phx6uy3i444qt9p57n8wz0xnylmd9/061-26578.English.dist...
Downloading https://swcdn.apple.com/content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/061-26589.English.dist...
Downloading https://swcdn.apple.com/content/downloads/06/50/041-91758-A_M8T44LH2AW/b5r4og05fhbgatve4agwy4kgkzv07mdid9/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/06/50/041-91758-A_M8T44LH2AW/b5r4og05fhbgatve4agwy4kgkzv07mdid9/041-91758.English.dist...
Downloading https://swcdn.apple.com/content/downloads/34/54/041-88800-A_HLMBDM42FL/anrmoj880qkj0lbybqm0c3830p70nawjrv/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/34/54/041-88800-A_HLMBDM42FL/anrmoj880qkj0lbybqm0c3830p70nawjrv/041-88800.English.dist...
Downloading https://swcdn.apple.com/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/041-90855.English.dist...
Downloading https://swcdn.apple.com/content/downloads/01/28/061-86291-A_JPEIWIOZES/enpozvvbmj3mj2dhulhevlt8b429qd5kw0/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/01/28/061-86291-A_JPEIWIOZES/enpozvvbmj3mj2dhulhevlt8b429qd5kw0/061-86291.English.dist...
Downloading https://swcdn.apple.com/content/downloads/37/41/001-04366/a6boefh8b6bee4k2x6v5lwyfjr7od2ica3/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/37/41/001-04366/a6boefh8b6bee4k2x6v5lwyfjr7od2ica3/001-04366.English.dist...
Downloading https://swcdn.apple.com/content/downloads/59/18/001-15219-A_EE9FN7UHJA/efuz3h0zlmx4qlinf4bxlguigo9jvhcr55/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/59/18/001-15219-A_EE9FN7UHJA/efuz3h0zlmx4qlinf4bxlguigo9jvhcr55/001-15219.English.dist...
Downloading https://swcdn.apple.com/content/downloads/23/45/001-36735-A_IRCLJ5YYKF/z8vka6xfykydycui5b7atpc52btxmbffdn/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/23/45/001-36735-A_IRCLJ5YYKF/z8vka6xfykydycui5b7atpc52btxmbffdn/001-36735.English.dist...
Downloading https://swcdn.apple.com/content/downloads/10/06/001-36801-A_9MBEQ97Z9M/672a1q4u8978ize3s15ygivp2dqwmk10qb/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/10/06/001-36801-A_9MBEQ97Z9M/672a1q4u8978ize3s15ygivp2dqwmk10qb/001-36801.English.dist...
Downloading https://swcdn.apple.com/content/downloads/20/55/001-51042-A_2EJTJOSUC2/rsvf13iphg5lvcqcysqcarv8cvddq8igek/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/20/55/001-51042-A_2EJTJOSUC2/rsvf13iphg5lvcqcysqcarv8cvddq8igek/001-51042.English.dist...
Downloading https://swcdn.apple.com/content/downloads/61/24/001-57224/0o1xetys5n505gocjsil5qo0p4kg939elb/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/61/24/001-57224/0o1xetys5n505gocjsil5qo0p4kg939elb/001-57224.English.dist...
Downloading https://swcdn.apple.com/content/downloads/26/37/001-68446/r1dbqtmf3mtpikjnd04cq31p4jk91dceh8/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/26/37/001-68446/r1dbqtmf3mtpikjnd04cq31p4jk91dceh8/001-68446.English.dist...
No server metadata for 042-45246
Downloading https://swdist.apple.com/content/downloads/14/38/042-45246-A_NLFOFLCJFZ/jk992zbv98sdzz3rgc7mrccjl3l22ruk1c/042-45246.English.dist...
No server metadata for 052-60131
Downloading https://swdist.apple.com/content/downloads/46/57/052-60131-A_KM2RH04C2D/9yzvba1uvpem2wuo95r459qno57qaizwf2/052-60131.English.dist...
No server metadata for 052-77516
Downloading https://swdist.apple.com/content/downloads/04/13/052-77516-A_4P7VY083DT/83qy3989rsnylxagdmim3owwjdtc33zfe4/052-77516.English.dist...
No server metadata for 052-64249
Downloading https://swdist.apple.com/content/downloads/39/23/052-64249-A_9F709WX21B/y8u836xffflrewihfvnacmy3p4v8rm3w57/052-64249.English.dist...
No server metadata for 062-58676
Downloading https://swdist.apple.com/content/downloads/30/63/062-58676-A_ECWQ492BNE/hrlydsxfk837el7k95venauqmn8ruizw3e/062-58676.English.dist...
No server metadata for 062-53088
Downloading https://swdist.apple.com/content/downloads/23/21/062-53088-A_SXVN6EY7CJ/96ie8x4gai9mlggf0o39r2hsfnqr4jgesv/062-53088.English.dist...
No server metadata for 062-78429
Downloading https://swdist.apple.com/content/downloads/11/43/062-78429-A_DAI7Y9IP98/qxbabjzemiel7guag7q09xxe0631iie45p/062-78429.English.dist...
No server metadata for 062-78824
Downloading https://swdist.apple.com/content/downloads/42/57/062-78824-A_60MNDAK5UB/dov1trqs34ol9r0b3zt3swgw04ndf7ctwm/062-78824.English.dist...
No server metadata for 062-78643
Downloading https://swdist.apple.com/content/downloads/05/02/062-78643-A_T7YK72IEUB/f6jf452yv3xah9gljv28yxjs5x5bm7p1fr/062-78643.English.dist...
No server metadata for 072-01382
Downloading https://swdist.apple.com/content/downloads/05/43/072-01382-A_5URDEOHRHL/chwodorv8xcjx5ea41i5gmmw9ofgjwxtq1/072-01382.English.dist...
No server metadata for 072-12353
Downloading https://swdist.apple.com/content/downloads/08/08/072-12353-A_IUBHH68MQT/sv48ma68gmhl96fa9anqfj3i2fnb1ur2wh/072-12353.English.dist...
No server metadata for 072-09041
Downloading https://swdist.apple.com/content/downloads/12/44/072-09041-A_ZYPP05KKXT/jpuuhsha7r52g4p867qvcdfaugaloimbgh/072-09041.English.dist...
No server metadata for 072-09024
Downloading https://swdist.apple.com/content/downloads/29/47/072-09024-A_8G5EY3SPX2/l6ecgngkrhhbc6q4mae5cwe42pxp49co7w/072-09024.English.dist...
No server metadata for 072-12295
Downloading https://swdist.apple.com/content/downloads/09/57/072-12295-A_E6ZJOV0DG7/55hn1tc1t2rk1g4mmb6l7z3ac6cippqfq0/072-12295.English.dist...
 #      ProductID    Version    Build   Post Date  Title
 1      061-26578    10.14.5  18F2059  2019-10-14  macOS Mojave
 2      061-26589    10.14.6   18G103  2019-10-14  macOS Mojave
 3      041-91758    10.13.6    17G66  2019-10-19  macOS High Sierra
 4      041-88800    10.14.4  18E2034  2019-10-23  macOS Mojave
 5      041-90855    10.13.5   17F66a  2019-10-23  Install macOS High Sierra Beta
 6      061-86291    10.15.3  19D2064  2020-03-23  macOS Catalina
 7      001-04366    10.15.4  19E2269  2020-05-04  macOS Catalina
 8      001-15219    10.15.5  19F2200  2020-06-15  macOS Catalina
 9      001-36735    10.15.6  19G2006  2020-08-06  macOS Catalina
10      001-36801    10.15.6  19G2021  2020-08-12  macOS Catalina
11      001-51042    10.15.7     19H2  2020-09-24  macOS Catalina
12      001-57224    10.15.7     19H4  2020-10-27  macOS Catalina
13      001-68446    10.15.7    19H15  2020-11-11  macOS Catalina
14      042-45246    11.7.10  20G1427  2023-09-11  macOS Big Sur
15      052-60131     12.7.4  21H1123  2024-03-18  macOS Monterey
16      052-77516     14.4.1   23E224  2024-04-01  macOS Sonoma
17      052-64249     13.6.6   22G630  2024-04-01  macOS Ventura
18      062-58676     14.6.1    23G93  2024-08-14  macOS Sonoma
19      062-53088     13.6.9   22G830  2024-08-14  macOS Ventura
20      062-78429       15.0   24A335  2024-09-16  macOS Sequoia
21      062-78824       14.7   23H124  2024-09-16  macOS Sonoma
22      062-78643       13.7   22H123  2024-09-16  macOS Ventura
23      072-01382     15.0.1   24A348  2024-10-21  macOS Sequoia
24      072-12353       15.1    24B83  2024-10-28  macOS Sequoia
25      072-09041     14.7.1   23H222  2024-11-04  macOS Sonoma
26      072-09024     13.7.1   22H221  2024-11-04  macOS Ventura
27      072-12295       15.1  24B2083  2024-10-30  macOS Sequoia

Choose a product to download (1-27): 27
Downloading https://swcdn.apple.com/content/downloads/09/57/072-12295-A_E6ZJOV0DG7/55hn1tc1t2rk1g4mmb6l7z3ac6cippqfq0/InstallInfo.plist...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   181  100   181    0     0    953      0 --:--:-- --:--:-- --:--:--   957
Downloading https://swcdn.apple.com/content/downloads/09/57/072-12295-A_E6ZJOV0DG7/55hn1tc1t2rk1g4mmb6l7z3ac6cippqfq0/UpdateBrain.zip...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 3867k  100 3867k    0     0   9.9M      0 --:--:-- --:--:-- --:--:--  9.9M
Downloading https://swcdn.apple.com/content/downloads/09/57/072-12295-A_E6ZJOV0DG7/55hn1tc1t2rk1g4mmb6l7z3ac6cippqfq0/InstallAssistant.pkg...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 11.8G  100 11.8G    0     0  10.4M      0  0:19:17  0:19:17 --:--:-- 10.6M
Downloading https://swdist.apple.com/content/downloads/09/57/072-12295-A_E6ZJOV0DG7/55hn1tc1t2rk1g4mmb6l7z3ac6cippqfq0/InstallAssistant.pkm...
Downloading https://swcdn.apple.com/content/downloads/09/57/072-12295-A_E6ZJOV0DG7/55hn1tc1t2rk1g4mmb6l7z3ac6cippqfq0/com_apple_MobileAsset_MacSoftwareUpdate.plist...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  227k  100  227k    0     0  2826k      0 --:--:-- --:--:-- --:--:-- 2839k
Downloading https://swcdn.apple.com/content/downloads/09/57/072-12295-A_E6ZJOV0DG7/55hn1tc1t2rk1g4mmb6l7z3ac6cippqfq0/MajorOSInfo.pkg...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1225k  100 1225k    0     0  9383k      0 --:--:-- --:--:-- --:--:-- 9428k
Downloading https://swdist.apple.com/content/downloads/09/57/072-12295-A_E6ZJOV0DG7/55hn1tc1t2rk1g4mmb6l7z3ac6cippqfq0/MajorOSInfo.pkm...
Making empty sparseimage...
installer: Package name is macOS Sequoia
installer: Installing at base path /private/tmp/dmg.bXkPx3
installer: The install was successful.
*********************************************************
*** Working around a very dumb Apple bug in a package ***
*** postinstall script that fails to correctly target ***
*** the Install macOS.app when installed to a volume  ***
*** other than the current boot volume.               ***
***       Please file feedback with Apple!            ***
*********************************************************
Product downloaded and installed to /Users/yousuk/Install_macOS_15.1-24B2083.sparseimage
Making read-only compressed disk image containing Install macOS Sequoia.app...
.........................................................................................................................
created: /Users/yousuk/Install_macOS_15.1-24B2083.dmg
Disk image created at: ./Install_macOS_15.1-24B2083.dmg
(base) yousuk@iMac ~ % sudo /Applications/Install\ macOS\ Sequoia.app/Contents/Resources/createinstallmedia --volume /Volumes/Install\
 macOS\ Sequoia
Password:
sudo: a password is required
(base) yousuk@iMac ~ % sudo /Applications/Install\ macOS\ Sequoia.app/Contents/Resources/createinstallmedia --volume /Volumes/Install\ macOS\ Sequoia
Password:
Ready to start.
To continue we need to erase the volume at /Volumes/Install macOS Sequoia.
If you wish to continue type (Y) then press return: Y
Erasing disk: 0%... 10%... 20%... 30%... 100%
Copying essential files...
Copying the macOS RecoveryOS...
Making disk bootable...
Failed to extract AssetData/boot/Firmware/Manifests/InstallerBoot/* from update bundle
The bless of the installer disk failed.
PeterSuh-Q3 commented 4 days ago

The singularity is that the size of this 27th build 24B2083 image should be larger than the previous version, but it is smaller.

The 24th build 24B83 image is being downloaded now, and it is larger at 13.5GB.

스크린샷 2024-11-19 오후 2 57 05
PeterSuh-Q3 commented 4 days ago

I downloaded it directly from Apple.

softwareupdate --list-full-installers softwareupdate --fetch-full-installer --full-installer-version 15.1

The image I received this way was fine.

gregneagle commented 4 days ago

Sounds like you have a workaround for your needs. (I don't use createinstallmedia for anything here). Curious if macOS installers downloaded via the MIST tool have similar issues. https://github.com/ninxsoft/Mist

grahampugh commented 4 days ago

Don't use 24B2083, that's the forked build for the new M4 Macs. Use 24B83.

gregneagle commented 4 days ago

So then also curious what the build was for the installer he got with softwareupdate --fetch-full-installer --full-installer-version 15.1. Betting it also was 24B83.

PeterSuh-Q3 commented 3 days ago

It seems to be a known issue in the Apple community.

https://discussions.apple.com/thread/255849666?sortBy=rank

I contacted Apple directly.

I tried to proceed with the solution I found on Google, which was to grant "Full disk access" to Terminal, but it was successful half the time and failed half the time.

The two Macs I'm working on are using Sequoia 15.1.

On the first PC I'm writing this report on, the message was initially "Failed to extract AssetData/boot/Firmware/Manifests/InstallerBoot/* from update bundle" "The bless of the installer disk failed."

and when I granted "Full disk access," the message changed to this again "Couldn't extract BaseSystem chunklist to path: /Volumes/Install macOS Sequoia/BaseSystem" "The bless of the installer disk failed."

On the 2nd PC it started from the last message above and after granting "full disk access" everything was resolved.

The situation on the 1st PC is still persisting. I think APPLE should answer why.

grahampugh commented 3 days ago

Looking in the posts in that Apple discussions list, it looks to me like all the people having the problem are using the incorrect version of 15.1 for the Mac they are trying to restore. Lots of people trying to restore on the new M4 mini using the regular installer, which won't work. But, as Greg says, if you use softwareupdate --fetch-full-installer you'll get the build appropriate for the device it runs on. Of course if you then make a bootable USB installer of that and try to use it on a device that needs the other fork, you'll have problems.

mist-cli has a --compatible option that will only show (or download) installers compatible with the device it's running on. My fork of installinstallmacos.py also checks compatibility and will show which installers are compatible with the device it's running on.