munki/macadmin-scripts

error creating 10.15.7 build (both versions)

gadgetvirtuoso opened this issue · 3 comments

Making empty sparseimage...
installer: Package name is macOS Catalina
installer: Installing at base path /private/tmp/dmg.RmrEL6
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “InstallESDDmg.pkg”.)
Command '[u'/usr/sbin/installer', u'-pkg', u'./content/downloads/61/24/001-57224/0o1xetys5n505gocjsil5qo0p4kg939elb/001-57224.English.dist', u'-target', '/private/tmp/dmg.RmrEL6']' returned non-zero exit status 1
Product installation failed.

Works as expected here:

Downloading https://swdist.apple.com/content/downloads/61/24/001-57224/0o1xetys5n505gocjsil5qo0p4kg939elb/RecoveryHDMetaDmg.pkm...
Making empty sparseimage...
installer: Package name is macOS Catalina
installer: Installing at base path /private/tmp/dmg.1QTrj7
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/Shared/macadmin-scripts-main/Install_macOS_10.15.7-19H4.sparseimage
Making read-only compressed disk image containing Install macOS Catalina.app...
..........................................................................................................................................................
created: /Users/Shared/macadmin-scripts-main/Install_macOS_10.15.7-19H4.dmg
Disk image created at: ./Install_macOS_10.15.7-19H4.dmg

Closing this on the guess that I'm right about the cause. Please reopen with additional information if that's not the case.