I was able to expand the InstallESDDmg.pkg and copy out the InstallESD.dmg back into the .app/ and reimport the app using munki again as a work around. I'm currently testing that this does, in fact, work.$ cp Install\ macOS\ High\ Sierra.app/Contents/SharedSupport/InstallESDDmg.pkg$ pkgutil --expand InstallESDDmg.pkg InstallESDDmg$ cp InstallESDDmg/InstallESD.dmg Install\ macOS\ High\ Sierra.app/Contents/SharedSupport/$ munkiimport ~/Downloads/Install\ macOS\ High\ Sierra.appThe InstallESDDmg.pkg also is in the "macOS Install Data" that gets created with the small install tool/stub on first download from the AppStore. More details regarding that here: https://eclecticlight.co/2017/09/25/macos-high-sierra-installation-and-issues/
--
Find related discussion groups here:
https://github.com/munki/munki/wiki/Discussion-Group
---
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
To post to this group, send email to munk...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
$ sudo macadmin-scripts/installinstallmacos.py --compress
Password:
Downloading https://swscan.apple.com/content/catalogs/others/index-10.13seed-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog...
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/091-62779.English.dist...
Downloading http://swcdn.apple.com/content/downloads/10/62/091-76233/v27a64q1zvxd2lbw4gbej9c2s5gxk6zb1l/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/10/62/091-76233/v27a64q1zvxd2lbw4gbej9c2s5gxk6zb1l/091-76233.English.dist...
Downloading http://swcdn.apple.com/content/downloads/45/61/091-71284/77pnhgsj5oza9h28y7vjjtby8s1binimnj/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/45/61/091-71284/77pnhgsj5oza9h28y7vjjtby8s1binimnj/091-71284.English.dist...
# ProductID Version Build Title
1 091-76233 10.13.4 17E199 Install macOS High Sierra
2 091-62779 10.13.3 17D2047 Install macOS High Sierra
3 091-71284 10.13.4 17E160g Install macOS High Sierra Beta
Choose a product to download (1-3): 1
[ ... snip curl output ... ]
$ ls -l content/downloads/10/62/091-76233/v27a64q1zvxd2lbw4gbej9c2s5gxk6zb1ltotal 11146008-rw-r--r-- 1 root staff 7956 Apr 2 10:19 091-76233.English.dist-rw-r--r-- 1 root staff 328 Apr 2 10:40 AppleDiagnostics.chunklist-rw-r--r-- 1 root staff 2648744 Apr 2 10:42 AppleDiagnostics.dmg-rw-r--r-- 1 root staff 1984 Apr 2 10:20 BaseSystem.chunklist-rw-r--r-- 1 root staff 485202034 Apr 2 10:42 BaseSystem.dmg-rw-r--r-- 1 root staff 11832725 Apr 2 10:42 InstallAssistantAuto.pkg-rw-r--r-- 1 root staff 3379 Apr 2 10:42 InstallAssistantAuto.pkm-rw-r--r-- 1 root staff 16809 Apr 2 10:19 InstallAssistantAuto.smd-rw-r--r-- 1 root staff 16528 Apr 2 10:42 InstallESDDmg.chunklist-rw-r--r-- 1 root staff 4719681371 Apr 2 10:37 InstallESDDmg.pkg-rw-r--r-- 1 root staff 372 Apr 2 10:37 InstallESDDmg.pkm-rw-r--r-- 1 root staff 1584 Apr 2 10:37 InstallInfo.plist-rw-r--r-- 1 root staff 674140 Apr 2 10:42 OSInstall.mpkg-rw-r--r-- 1 root staff 486637405 Apr 2 10:39 RecoveryHDMetaDmg.pkg-rw-r--r-- 1 root staff 372 Apr 2 10:39 RecoveryHDMetaDmg.pkm
def install_product(dist_path, target_vol):
'''Install a product to a target volume'''
- cmd = ['/usr/sbin/installer', '-pkg', dist_path, '-target', target_vol]
+ pkg_path = os.path.join(os.path.dirname(dist_path), 'InstallESDDmg.pkg')
+ cmd = ['/usr/sbin/installer', '-pkg', pkg_path, '-target', target_vol]
$ munkiimport Install_macOS_10.13.4-17E199.dmg
Traceback (most recent call last):
File "/usr/local/munki/munkiimport", line 607, in <module>
main()
File "/usr/local/munki/munkiimport", line 378, in main
pkginfo = pkginfolib.makepkginfo(installer_item, options)
File "/usr/local/munki/munkilib/admin/pkginfolib.py", line 419, in makepkginfo
pkginfo = get_catalog_info_from_dmg(installeritem, options)
File "/usr/local/munki/munkilib/admin/pkginfolib.py", line 234, in get_catalog_info_from_dmg
iteminfo = getiteminfo(itempath)
File "/usr/local/munki/munkilib/admin/pkginfolib.py", line 333, in getiteminfo
if key in plist:
TypeError: argument of type 'NoneType' is not iterable
$ munkiimport -V3.2.0.3476
$ ls -l "/Volumes/Install macOS High Sierra/Install macOS High Sierra.app/Contents/SharedSupport/"
total 9218128
-rw-r--r-- 1 spyle staff 4719681371 Apr 2 13:32 InstallESD.dmg
def install_product(dist_path, target_vol):
'''Install a product to a target volume'''
- cmd = ['/usr/sbin/installer', '-pkg', dist_path, '-target', target_vol]
+ pkg_path = os.path.join(os.path.dirname(dist_path), 'InstallESDDmg.pkg')
+ cmd = ['/usr/sbin/installer', '-pkg', pkg_path, '-target', target_vol]
However, this still fails in the munkiimport:
$ munkiimport Install_macOS_10.13.4-17E199.dmg
Traceback (most recent call last):
File "/usr/local/munki/munkiimport", line 607, in <module>
main()
File "/usr/local/munki/munkiimport", line 378, in main
pkginfo = pkginfolib.makepkginfo(installer_item, options)
File "/usr/local/munki/munkilib/admin/pkginfolib.py", line 419, in makepkginfo
pkginfo = get_catalog_info_from_dmg(installeritem, options)
File "/usr/local/munki/munkilib/admin/pkginfolib.py", line 234, in get_catalog_info_from_dmg
iteminfo = getiteminfo(itempath)
File "/usr/local/munki/munkilib/admin/pkginfolib.py", line 333, in getiteminfo
if key in plist:
TypeError: argument of type 'NoneType' is not iterable$ munkiimport -V3.2.0.3476
I think the the DMG is being made correctly, right?
$ ls -l "/Volumes/Install macOS High Sierra/Install macOS High Sierra.app/Contents/SharedSupport/"
total 9218128
-rw-r--r-- 1 spyle staff 4719681371 Apr 2 13:32 InstallESD.dmg
$ sudo ./macadmin-scripts/installinstallmacos.py --compress
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/InstallAssistantAuto.smd...Downloading https://swdist.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/091-62779.English.dist...Downloading http://swcdn.apple.com/content/downloads/10/62/091-76233/v27a64q1zvxd2lbw4gbej9c2s5gxk6zb1l/InstallAssistantAuto.smd...Downloading https://swdist.apple.com/content/downloads/10/62/091-76233/v27a64q1zvxd2lbw4gbej9c2s5gxk6zb1l/091-76233.English.dist...Downloading http://swcdn.apple.com/content/downloads/45/61/091-71284/77pnhgsj5oza9h28y7vjjtby8s1binimnj/InstallAssistantAuto.smd...Downloading https://swdist.apple.com/content/downloads/45/61/091-71284/77pnhgsj5oza9h28y7vjjtby8s1binimnj/091-71284.English.dist... # ProductID Version Build Title 1 091-76233 10.13.4 17E199 Install macOS High Sierra 2 091-62779 10.13.3 17D2047 Install macOS High Sierra 3 091-71284 10.13.4 17E160g Install macOS High Sierra Beta
Choose a product to download (1-3): 2
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Downloading https://swdist.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/InstallAssistantAuto.pkm...Making empty sparseimage...installer: Error - ERROR_60DE9AF0EECommand '['/usr/sbin/installer', '-pkg', './content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/091-62779.English.dist', '-target', '/private/tmp/dmg.flNeMj']' returned non-zero exit status 1Product downloaded and installed to /Users/spyle/projects/mac_admin/pkgs/macOS/Install_macOS_10.13.3-17D2047.sparseimage
Traceback (most recent call last):
File "./macadmin-scripts/installinstallmacos.py", line 425, in <module> main() File "./macadmin-scripts/installinstallmacos.py", line 413, in main for item in os.listdir(applications_dir):OSError: [Errno 2] No such file or directory: '/private/tmp/dmg.flNeMj/Applications'
$ ls -al /private/tmp/dmg.flNeMj/total 0drwxr-xr-x 3 root wheel 170 Apr 2 15:54 .drwxrwxrwt 26 root wheel 884 Apr 2 15:54 ..d-wx-wx-wt@ 2 root wheel 68 Apr 2 15:54 .Trashes
[ ... snipped download output ...]Making empty sparseimage...installer: Error - ERROR_60DE9AF0EECommand '['/usr/sbin/installer', '-pkg', './content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/091-62779.English.dist', '-target', '/private/tmp/dmg.PVVUez']' returned non-zero exit status 1Product downloaded and installed to /Users/spyle/projects/mac_admin/pkgs/macOS/Install_macOS_10.13.3-17D2047.sparseimage
$ uname -a
Darwin shawn-desktop.local 15.6.0 Darwin Kernel Version 15.6.0: Sun Jun 4 21:43:07 PDT 2017; root:xnu-3248.70.3~1/RELEASE_X86_64 x86_64
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.11.6
BuildVersion: 15G1611