Error installing Bootcamp package

I created a Windows 10/Bootcamp package that we’re intending to push out via JAMF but I keep running into the same error when attempting to test out the installation on a local machine. Looks like maybe the 50% partition I have it set to create is failing? Can anyone point me in the direction of a solution? Thanks!

Jul 31 17:16:06 Loaners-MacBook-Pro-3 Installer[2180]: @(#)PROGRAM:Install PROJECT:Install-1000
Jul 31 17:16:06 Loaners-MacBook-Pro-3 Installer[2180]: @(#)PROGRAM:Installer PROJECT:Installer-909
Jul 31 17:16:06 Loaners-MacBook-Pro-3 Installer[2180]: Hardware: MacBookPro11,1 @ 2.80 GHz (x 4), 8192 MB RAM
Jul 31 17:16:06 Loaners-MacBook-Pro-3 Installer[2180]: Running OS Build: Mac OS X 10.12.6 (16G29)
Jul 31 17:16:06 Loaners-MacBook-Pro-3 Installer[2180]: Env: TMPDIR=/var/folders/6v/4spbr2tn2lq5r5w7_h3z49380000gn/T/
Jul 31 17:16:06 Loaners-MacBook-Pro-3 Installer[2180]: Env: __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0
Jul 31 17:16:06 Loaners-MacBook-Pro-3 Installer[2180]: Env: SHELL=/bin/bash
Jul 31 17:16:06 Loaners-MacBook-Pro-3 Installer[2180]: Env: HOME=/Users/loaner
Jul 31 17:16:06 Loaners-MacBook-Pro-3 Installer[2180]: Env: Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.oW63tXXFiF/Render
Jul 31 17:16:06 Loaners-MacBook-Pro-3 Installer[2180]: Env: SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.076shb8ijf/Listeners
Jul 31 17:16:06 Loaners-MacBook-Pro-3 Installer[2180]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
Jul 31 17:16:06 Loaners-MacBook-Pro-3 Installer[2180]: Env: LOGNAME=loaner
Jul 31 17:16:06 Loaners-MacBook-Pro-3 Installer[2180]: Env: XPC_SERVICE_NAME=com.apple.installer.452
Jul 31 17:16:06 Loaners-MacBook-Pro-3 Installer[2180]: Env: USER=loaner
Jul 31 17:16:06 Loaners-MacBook-Pro-3 Installer[2180]: Env: XPC_FLAGS=0x0
Jul 31 17:16:06 Loaners-MacBook-Pro-3 Installer[2180]: 20170713_Bootcamp_Solidworks Installation Log
Jul 31 17:16:06 Loaners-MacBook-Pro-3 Installer[2180]: Opened from: /Users/loaner/Desktop/20170713_Bootcamp_Solidworks.pkg
Jul 31 17:16:06 Loaners-MacBook-Pro-3 Installer[2180]: Referenced component packages (1) trustLevel=100
Jul 31 17:16:07 Loaners-MacBook-Pro-3 Installer[2180]: InstallerStatusNotifications plugin loaded
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: Administrator authorization granted.
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: ================================================================================
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: User picked Standard Install
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: Choices selected for installation:
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: Install: "20170713_Bootcamp_Solidworks"
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: 20170713_Bootcamp_Solidworks.pkg : com.twocanoes.winclone_1499974460 : 4.0.0.1.0
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: ================================================================================
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: It took 0.00 seconds to summarize the package selections.
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: -[IFPKGDerivedDocument sortedPackageLocations]: result = (
“file://localhost”
)
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: location = file://localhost
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Users/loaner/Desktop/20170713_Bootcamp_Solidworks.pkg
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: Set authorization level to root for session
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: Will use PK session
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: Using authorization level of root for IFPKInstallElement
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: Starting installation:
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: Configuring volume "Untitled"
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: Preparing disk for local booted install.
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: Free space on “Untitled”: 456.64 GB (456637669376 bytes).
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: Create temporary directory "/var/folders/6v/4spbr2tn2lq5r5w7_h3z49380000gn/T//Install.2180Ra2Fg6"
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: IFPKInstallElement (1 packages)
Jul 31 17:16:18 Loaners-MacBook-Pro-3 installd[530]: PackageKit: Adding client PKInstallDaemonClient pid=2180, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
Jul 31 17:16:18 Loaners-MacBook-Pro-3 Installer[2180]: PackageKit: Enqueuing install with framework-specified quality of service (utility)
Jul 31 17:16:18 Loaners-MacBook-Pro-3 installd[530]: PackageKit: ----- Begin install -----
Jul 31 17:16:18 Loaners-MacBook-Pro-3 installd[530]: PackageKit: request=PKInstallRequest <1 packages, destination=/>
Jul 31 17:16:18 Loaners-MacBook-Pro-3 installd[530]: PackageKit: packages=(
“PKJaguarPackage <file://localhost/Users/loaner/Desktop/20170713_Bootcamp_Solidworks.pkg>”
)
Jul 31 17:16:18 Loaners-MacBook-Pro-3 installd[530]: PackageKit: Session UUID file exists - will not overwrite /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/F8A0F344-5D8F-4E93-9D65-1048A79D9023.activeSandbox
Jul 31 17:16:18 Loaners-MacBook-Pro-3 installd[530]: PackageKit: Extracting file://localhost/Users/loaner/Desktop/20170713_Bootcamp_Solidworks.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/F8A0F344-5D8F-4E93-9D65-1048A79D9023.activeSandbox/Root, uid=0)
Jul 31 17:16:18 Loaners-MacBook-Pro-3 installd[530]: PackageKit: prevent user idle system sleep
Jul 31 17:16:18 Loaners-MacBook-Pro-3 installd[530]: PackageKit: suspending backupd
Jul 31 17:16:18 Loaners-MacBook-Pro-3 installd[530]: PackageKit: Using trashcan path /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/PKInstallSandboxTrash/F8A0F344-5D8F-4E93-9D65-1048A79D9023.sandboxTrash for sandbox /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/F8A0F344-5D8F-4E93-9D65-1048A79D9023.activeSandbox
Jul 31 17:16:18 Loaners-MacBook-Pro-3 installd[530]: PackageKit: Shoving /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/F8A0F344-5D8F-4E93-9D65-1048A79D9023.activeSandbox/Root (0 items) to /
Jul 31 17:16:18 Loaners-MacBook-Pro-3 installd[530]: PackageKit: Executing script “./postflight” in /Users/loaner/Desktop/20170713_Bootcamp_Solidworks.pkg/Contents/Resources
Jul 31 17:16:18 Loaners-MacBook-Pro-3 installd[530]: ./postflight: Creating bootcamp partition section
Jul 31 17:16:18 Loaners-MacBook-Pro-3 installd[530]: ./postflight: Checking out the partition table on device /
Jul 31 17:16:18 Loaners-MacBook-Pro-3 installd[530]: ./postflight: Mode: Create Partition
Jul 31 17:16:18 Loaners-MacBook-Pro-3 installd[530]: ./postflight: checking for existing bootcamp partitions…
Jul 31 17:16:18 Loaners-MacBook-Pro-3 install_monitor[2189]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Jul 31 17:16:18 Loaners-MacBook-Pro-3 installd[530]: ./postflight: checking for core storage…
Jul 31 17:16:18 Loaners-MacBook-Pro-3 installd[530]: ./postflight: Selected volume is core storage
Jul 31 17:16:18 Loaners-MacBook-Pro-3 installd[530]: ./postflight: checking size…
Jul 31 17:16:19 Loaners-MacBook-Pro-3 installd[530]: ./postflight: Making sure that the partition to split is JHFS+
Jul 31 17:16:19 Loaners-MacBook-Pro-3 installd[530]: ./postflight: Filesystem is Journaled HFS+ or core storage so we are good to try and split it…
Jul 31 17:16:19 Loaners-MacBook-Pro-3 installd[530]: ./postflight: Converting percentage from 50% to 50/100
Jul 31 17:16:19 Loaners-MacBook-Pro-3 installd[530]: ./postflight: New Mac size is 248161632256b
Jul 31 17:16:19 Loaners-MacBook-Pro-3 installd[530]: ./postflight: Error: -69666: This Core Storage operation is not allowed on a sparse logical volume group
Jul 31 17:16:19 Loaners-MacBook-Pro-3 installd[530]: ./postflight: Could not find . Quiting
Jul 31 17:16:19 Loaners-MacBook-Pro-3 install_monitor[2189]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Jul 31 17:16:19 Loaners-MacBook-Pro-3 installd[530]: PackageKit: releasing backupd
Jul 31 17:16:19 Loaners-MacBook-Pro-3 installd[530]: PackageKit: allow user idle system sleep
Jul 31 17:16:19 Loaners-MacBook-Pro-3 installd[530]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 “An error occurred while running scripts from the package “20170713_Bootcamp_Solidworks.pkg”.” UserInfo={NSFilePath=./postflight, NSURL=file://localhost/Users/loaner/Desktop/20170713_Bootcamp_Solidworks.pkg, PKInstallPackageIdentifier=com.twocanoes.winclone_1499974460, NSLocalizedDescription=An error occurred while running scripts from the package “20170713_Bootcamp_Solidworks.pkg”.} {
NSFilePath = “./postflight”;
NSLocalizedDescription = “An error occurred while running scripts from the package \U201c20170713_Bootcamp_Solidworks.pkg\U201d.”;
NSURL = “file://localhost/Users/loaner/Desktop/20170713_Bootcamp_Solidworks.pkg”;
PKInstallPackageIdentifier = “com.twocanoes.winclone_1499974460”;
}
Jul 31 17:16:19 Loaners-MacBook-Pro-3 installd[530]: PackageKit: Running idle tasks
Jul 31 17:16:19 Loaners-MacBook-Pro-3 Installer[2180]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 “An error occurred while running scripts from the package “20170713_Bootcamp_Solidworks.pkg”.” UserInfo={NSFilePath=./postflight, NSURL=file://localhost/Users/loaner/Desktop/20170713_Bootcamp_Solidworks.pkg, PKInstallPackageIdentifier=com.twocanoes.winclone_1499974460, NSLocalizedDescription=An error occurred while running scripts from the package “20170713_Bootcamp_Solidworks.pkg”.}
Jul 31 17:16:19 Loaners-MacBook-Pro-3 installd[530]: PackageKit: Removing client PKInstallDaemonClient pid=2180, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
Jul 31 17:16:19 Loaners-MacBook-Pro-3 installd[530]: PackageKit: Done with sandbox removals
Jul 31 17:16:20 Loaners-MacBook-Pro-3 Installer[2180]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Jul 31 17:16:20 Loaners-MacBook-Pro-3 Installer[2180]: IFDInstallController 38D0 state = 8
Jul 31 17:16:20 Loaners-MacBook-Pro-3 Installer[2180]: Displaying ‘Install Failed’ UI.
Jul 31 17:16:20 Loaners-MacBook-Pro-3 Installer[2180]: ‘Install Failed’ UI displayed message:‘The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.’.

You are correct. The problem is occurring when the partition is created:

What version of OS X and what type of Mac is this getting installed on to?

You are correct. The problem is occurring when the partition is created:

What version of OS X and what type of Mac is this getting installed on to?

Thanks for the response!

This particular machine is a MacBook Pro (Retina, 13-inch, Mid 2014) running 10.12.6. I believe I also tested it out on a Mid 2015 MBP 13" with the same result.

Not that it should matter, but is file vault enabled? Do these machines have any custom partitions? How were they originally set up?

tim

FileVault is enabled, which I was wondering may be an issue. Other than
that, there’s just the macOS recovery partition which was created during
the install.

It shouldn’t be, since my primary development machine has filevault enabled and I create new partitions all the time via Disk Utility. We have never had a report of package based deployment on FileVault volumes, so it is possible that the core storage repartitioning mechanism we are using is running into problems. I’ll add it to the list of features to test (and fix) in an upcoming release.

tim

Ah, gotcha. Okay, that would be great. Is there a way to convert the 50%
repartitioning package I created into a static partition package? Or do I
just need to create a new one?

Creating a packaging is pretty fast, but you can just edit the Packagename.pkg/Contents/Resources/settings.sh and make it something like this:

#!/bin/sh
mode="existing"
slice=“4”

tim