I'm not sure if this is a MunkiReport or a Munki issue.
I use DeployStudio for image deployment, also a script in DeployStudio bootstraps Munki. So when imaging is ready the machine reboots and directly Managed Software Update runs (during loginwindow). One of the packages that is installed should enable FileVault and uploads the key to MunkiReport.
Unfortunately it fails when the package is installed when Munki is bootstrapped. The package is installed but FileVault is not enabled. The strange thing is that a FileVault key is generated and uploaded to MunkiReport. When I look in the package log file I see some errors:
***** FileVault Kickoff Script | Escrows FileVault Data to MunkiReport PHP 2 *****
FileVault 2 Encryption Not Yet Enabled
==== EFILoginCopyUserGraphics ===
Please reboot to complete the process.
Submitting FileVault Escrow Report
Munkireport: # Executing scripts in postflight.d
Munkireport: Running inventory_add_plugins.py
Munkireport: inventory_add_plugins.py Error: Traceback (most recent call last):
File "/usr/local/munki/postflight.d/inventory_add_plugins.py", line 18, in <module>
appinv = FoundationPlist.readPlist(invPath)
File "/usr/local/munki/munkilib/FoundationPlist.py", line 70, in readPlist
raise NSPropertyListSerializationException(errmsg)
munkilib.FoundationPlist.NSPropertyListSerializationException: stream had too few bytes in file /Library/Managed Installs/ApplicationInventory.plist
WARNING: Munkireport: inventory_add_plugins.py return code: 1
Munkireport: Requesting ard_model
Munkireport: Requesting installhistory
Munkireport: Requesting filevault_status
Munkireport: Requesting filevault_escrow
Munkireport: Requesting munkireport
Munkireport: Requesting displays_info
Munkireport: Requesting inventory
Munkireport: Requesting disk_report
Munkireport: Requesting warranty
Munkireport: Requesting localadmin
Munkireport: Requesting directory_service
Munkireport: Requesting network
Munkireport: Requesting bluetooth
Munkireport: Need to update warranty
Munkireport: Need to update installhistory
Munkireport: Need to update reportdata
Munkireport: Need to update disk_report
Munkireport: Need to update ard_model
Munkireport: Need to update munkireport
Munkireport: Need to update filevault_escrow
Munkireport: Need to update inventory
WARNING: Munkireport: Can't open /Library/Managed Installs/ApplicationInventory.plist
Munkireport: Sending items
Munkireport: Server info: starting: warranty
Server info: warranty: current status: Unregistered serialnumber
Server info: warranty: new status: Unregistered serialnumber
Server info: starting: installhistory
Server info: starting: reportdata
Server info: starting: disk_report
Server info: starting: ard_model
Server info: starting: munkireport
Server info: starting: filevault_escrow
Please confirm the Recovery Key is on the MunkiReport server and then reboot to complete the process.