System Image Utility and NetInstall Workflows error

Originator:zolotkey
Number:rdar://43303922 Date Originated:08/14/2018
Status:Open Resolved:
Product:macOS + SDK Product Version:10.14
Classification:Serious Bug Reproducible:Always
 
Area:
Automation

Summary:
Attempting to create a NetInstall Image in System Image Utility or Automator fails as the installation begins, with the error "The operation couldn't be completed. (System Image Utility error 2.)" When adding a pkg to install during install of macOS.


Steps to Reproduce:
1. On a fresh installation of Mojave (18A365a), copy the Mojave installer app to /Applications.
2. In System Image Utility, choose this installer app as the source, and NetInstall as the image type
3. Add a Distribution Package with Product ID at the Add Packages and Post-Install Scripts Screen.
3. Click Next through all the subsequent steps, leaving the defaults.
4. When the image build begins, input the administrator password for the user when prompted, and also accept the license when it is displayed.

Expected Results:
Image build would begin and complete successfully, leaving an .nbi file containing the pkg's in the NetInstall.dmg 


Actual Results:
An "Image Creation Failed" error is shown in the SIU UI, and in the /var/log/install.log file, these lines are shown around the time of the failure:

2018-08-14 14:29:23-07 mountweather Automator[1525]: Hardware: iMacPro1,1 @ 3.00 GHz (x 20), 32768 MB RAM
2018-08-14 14:29:23-07 mountweather Automator[1525]: Running OS Build: Mac OS X 10.14 (18A365a)
2018-08-14 14:29:23-07 mountweather Automator[1525]: Env: SHELL=/bin/bash
2018-08-14 14:29:23-07 mountweather Automator[1525]: Env: HOME=/Users/zolotkey
2018-08-14 14:29:23-07 mountweather Automator[1525]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
2018-08-14 14:29:23-07 mountweather Automator[1525]: Env: XPC_SERVICE_NAME=com.apple.Automator.2700
2018-08-14 14:29:23-07 mountweather Automator[1525]: Env: USER=zolotkey
2018-08-14 14:29:23-07 mountweather Automator[1525]: Env: XPC_FLAGS=0x0
2018-08-14 14:29:23-07 mountweather Automator[1525]: Will not update firmware because we can't find the mutable product ((null))
2018-08-14 14:29:23-07 mountweather Automator[1525]: Install will not be automated.
2018-08-14 14:29:23-07 mountweather storagekitd[1377]: <Security> Rejecting connection due to lack of entitlement
2018-08-14 14:29:23-07 mountweather Automator[1525]: Interrupted!
2018-08-14 14:29:23-07 mountweather Automator[1525]: -[SKHelperClient diskForPath:withCallbackBlock:]_block_invoke ** error: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.storagekitd" UserInfo={NSDebugDescription=connection to service named com.apple.storagekitd}
2018-08-14 14:29:23-07 mountweather Automator[1525]: Created firmware distribution controller from product
2018-08-14 14:29:23-07 mountweather Automator[1525]: PersonalizedManifests doesn't exist in mutable product: (null)
2018-08-14 14:29:23-07 mountweather Automator[1525]: Personalization is required but the required personalized manifests don't exist in the mutable product, continuing anyway (__OSINSTALL_ENFORCE_SECUREBOOT_OPTIN isn't set): (null)

Version/Build:
10.14 Beta (18A365a)

Comments

Duplicate of 33864546


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!