Apply Image error - Bcdboot failed!

Hi @ all,
first some information about the environment. We use:
SCCM 2012 Sp1 CU2, SQL 2008 R2
I try to deploy a windows 7 machine (desktop) in a branch office. the necessary files will be downloaded from a DP based on windows 7!!
When I boot from an USB stick (64-bit, bootable only, no standalone media) and start a Task Sequence, after downloading the os-image, during the "apply-step" I get the following error.
The smsts.log says:
System partition not set ApplyOperatingSystem 10.02.2014 18:51:39 1596 (0x063C)
Unable to find the partition that contains the OS boot loaders. Please ensure the hard disks have been properly partitioned
Unspecified error (Error: 80004005; Source: Windows) ApplyOperatingSystem 10.02.2014 18:51:39 1596 (0x063C)
Bcdboot failed! bcdboot.exe C:\Windows /l de-DE failed (15299)
stdout:
Failure when attempting to copy boot files.
stderr:
Installation of image 1 in package A120038D failed to complete..
Unspecified error (Error: 80004005; Source: Windows)
In the TS the hard disk will be cleaned and formatted. I also cleaned the hard disk manually before starting the TS > same error.
Another Task Sequqnce (only another os-image-wim file) for laptop in the same branch office, same room, same subnet and same switch will be deployed successfully.
To try the deployment via PXE it´s very difficult, because the deployment will be started over very slow WAN network connection.
Any ideas?
Many thanks in advance!
Tom

Have you looked into using task sequence variables to assist with the partitioning of the disk and the applying of the os?  Using task sequence variables can ensure that the os gets loaded to the desired partition.
During the task to partition the disk, you can select the properties option for the partition you want the os loaded onto and set a variable that the task sequence can refer to this partition by
Then, during the apply os image step, you can tell the task to install the os onto that partition by referring to the variable name used during partitioning.
Try implementing this and see if you still run into the same issues.

Similar Messages

  • Error: Bundler "Mac Application Image" (mac.app) failed to produce a bundle.

    I'm using Netbeans 8.02 with JDK 8 update 31 on Mac OSx Yosemite 10.10.2.  I'm getting the following error when trying to build an application image:
    Creating app bundle: /Users/scottselvia/Documents/JavaFXApplication4/dist/bundles/JavaFXApplication4.app
    java.io.IOException: Exec failed with code 1 command [[codesign, -f, -s, Developer ID Application: , -vvvv, /Users/scottselvia/Documents/JavaFXApplication4/dist/bundles/JavaFXApplication4.app/Contents/Java/JavaFXApplication4.jar] in unspecified directory
    /Users/scottselvia/Documents/JavaFXApplication4/nbproject/jfx-impl.xml:3415: The following error occurred while executing this line:
    /Users/scottselvia/Documents/JavaFXApplication4/nbproject/jfx-impl.xml:3438: The following error occurred while executing this line:
    /Users/scottselvia/Documents/JavaFXApplication4/nbproject/jfx-impl.xml:1465: The following error occurred while executing this line:
    /Users/scottselvia/Documents/JavaFXApplication4/nbproject/jfx-impl.xml:3093: The following error occurred while executing this line:
    /Users/scottselvia/Documents/JavaFXApplication4/nbproject/jfx-impl.xml:2055: Error: Bundler "Mac Application Image" (mac.app) failed to produce a bundle.
    BUILD FAILED (total time: 4 seconds)

    I'm using Netbeans 8.02 with JDK 8 update 31 on Mac OSx Yosemite 10.10.2.  I'm getting the following error when trying to build an application image:
    Creating app bundle: /Users/scottselvia/Documents/JavaFXApplication4/dist/bundles/JavaFXApplication4.app
    java.io.IOException: Exec failed with code 1 command [[codesign, -f, -s, Developer ID Application: , -vvvv, /Users/scottselvia/Documents/JavaFXApplication4/dist/bundles/JavaFXApplication4.app/Contents/Java/JavaFXApplication4.jar] in unspecified directory
    /Users/scottselvia/Documents/JavaFXApplication4/nbproject/jfx-impl.xml:3415: The following error occurred while executing this line:
    /Users/scottselvia/Documents/JavaFXApplication4/nbproject/jfx-impl.xml:3438: The following error occurred while executing this line:
    /Users/scottselvia/Documents/JavaFXApplication4/nbproject/jfx-impl.xml:1465: The following error occurred while executing this line:
    /Users/scottselvia/Documents/JavaFXApplication4/nbproject/jfx-impl.xml:3093: The following error occurred while executing this line:
    /Users/scottselvia/Documents/JavaFXApplication4/nbproject/jfx-impl.xml:2055: Error: Bundler "Mac Application Image" (mac.app) failed to produce a bundle.
    BUILD FAILED (total time: 4 seconds)

  • Creative Cloud Acrobat ERROR: DS001: Failed to mount the disk image

    This is very frustrating...I have installed CC app manager and have tried to downlaod and install Acrobat Xpro but get this error instead.
    Exit Code: 7
    Please see specific errors below for troubleshooting. For example,  ERROR: DS001 ...
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 1 error(s)
    ----------- Payload: Suite Shared Configuration CS7 4.0.0.0 {BD1F3424-B47B-45DD-B000-3571A67B63F6} -----------
    ERROR: DS001: Failed to mount the disk image at /Volumes/Acrobat XI Pro CCM/Adobe CS7/payloads/AdobeSuiteSharedConfiguration4-mul/AdobeSuiteSharedConfiguration4-mul.dmg. Please verify that the disk image is not corrupt.
    Have search forums but can't find any thing that deals with this
    Help!

    Have you tried the CC forum. This is a CC issue and not an Acrobat issue. You could also try downloading AA X from http://prodesigntools.com/adobe-acrobat-x-10-pro-reader-suite-direct-download-links-ddl.ht ml.

  • Reader XI (11.0.0) fails to fix "insufficient data for an image" error

    after updating to 10.1.4 we were getting numerous "insufficient data for an image" errors on some pages only.  These are documents (construction plans) scanned by a client and we have no control over their workflow or methods.  The device reported in the pdf file proerties is a Canon iR C3850. 
    The problem persists in Reader XI on both Win7-32bit and XP Pro SP3 PCs.  Rolling back to 10.1.3 was also ineffective.  Any ideas why the docmented fix does not work?
    Thanks.
    BC.

    Please see this 43.8 MB, 600 page, scanned book:
    http://archive.org/download/historyofmovies00hamp/historyofmovies00hamp.pdf
    Under Reader X it works fine.
    Thanks.

  • System Partition Not Set. Bcdboot failed! bcdboot.exe

    Hey guys,
    I have an issue that I can't get past, and I've completely run out of ideas.
    I have an SCCM 2012 SP1 server and it has KB2801987 applied.
    From this server, I run a Windows 7 Enterprise x86, and a Windows 7 Enterprise x64 task sequence for bare metal deployment to workstations.
    Everything works perfectly fine, EXCEPT when I deploy the Windows 7 Ent x64 WIM, and I've used bootable USB media.
    PXE Booting a machine, and running the task sequence that deploys Win7x64 = works perfectly.
    Advertising the Win7x64 task sequence to a machine = works perfectly
    Booting from a 32-bit boot usb media, running the Win7x64 task sequence -> downloads the boot(x64) WinPE image, then starts deployment = works perfectly
    Booting from 64-bit boot usb media, running the Win7X64 task sequence = Task Sequence Error (0x8004005).
    I've recreated my USB boot media several times. I've tried different brands/models of USB keys, and I always get the exact same error.
    And this is the same error that always happens in my SMSTS.LOG.  It seems it can't set the boot partition, and fails at the every end of applying the WIM image.  And again, this is ONLY when I use USB boot media for THIS particular task sequence. 
    The exact same TS, WinPE boot image and WIM image work just fine when deployed via any other method.  I guess the only thing I haven't tried yet is to make a bootable CD with the same media to see if I get the same issue.  I will try that as soon
    as I can. 
    But any ideas/help is appreciated.  Thanks guys.
    <![LOG[Expand a string: WinPE]LOG]!><time="14:21:09.154-600" date="02-21-2013" component="TSManager" context="" type="0" thread="1084" file="executionenv.cxx:782">
    <![LOG[Executing command line: OSDApplyOS.exe /image:BAC0004C,%OSDImageIndex% "/config:BAC00054,%OSDConfigFileName%" /target:0,2 /runfromnet:False]LOG]!><time="14:21:09.154-600" date="02-21-2013" component="TSManager" context="" type="1" thread="1084" file="commandline.cpp:827">
    <![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="14:21:09.186-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="commandline.cpp:228">
    <![LOG[Set command line: "OSDApplyOS.exe" /image:BAC0004C,2 "/config:BAC00054,bac_unattend_soe_64.xml" /target:0,2 /runfromnet:False]LOG]!><time="14:21:09.186-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="commandline.cpp:731">
    <![LOG[Found run from net option: 0]LOG]!><time="14:21:09.186-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="applyos.cpp:283">
    <![LOG[Not a data image]LOG]!><time="14:21:09.186-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="applyos.cpp:433">
    <![LOG[ApplyOSRetry: ]LOG]!><time="14:21:09.186-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="applyos.cpp:445">
    <![LOG[TSLaunchMode: UFD]LOG]!><time="14:21:09.186-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="applyos.cpp:446">
    <![LOG[OSDUseAlreadyDeployedImage: FALSE]LOG]!><time="14:21:09.201-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="applyos.cpp:447">
    <![LOG[Adding logical drive: C:]LOG]!><time="14:21:09.201-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="diskutils.cpp:1537">
    <![LOG[Adding logical drive: D:]LOG]!><time="14:21:09.201-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="diskutils.cpp:1537">
    <![LOG[Skipping non-local logical drive: E:]LOG]!><time="14:21:09.201-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="diskutils.cpp:1543">
    <![LOG[Skipping non-local logical drive: F:]LOG]!><time="14:21:09.201-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="diskutils.cpp:1543">
    <![LOG[Skipping non-local logical drive: X:]LOG]!><time="14:21:09.201-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="diskutils.cpp:1543">
    <![LOG[The volume D:\ exists and is a local hard drive.]LOG]!><time="14:21:09.201-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="installcommon.cpp:557">
    <![LOG[The volume D:\ is using a valid file system.]LOG]!><time="14:21:09.279-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="installcommon.cpp:600">
    <![LOG[Windows target partition is 0-2, driver letter is D:\]LOG]!><time="14:21:09.279-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="applyos.cpp:491">
    <![LOG[Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL']LOG]!><time="14:21:09.279-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="util.cpp:963">
    <![LOG[The machine does not have a local client cache.]LOG]!><time="14:21:09.279-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="installcommon.cpp:1029">
    <![LOG[ResolveSource flags: 0x00000001]LOG]!><time="14:21:09.279-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="resolvesource.cpp:3265">
    <![LOG[SMSTSPersistContent: . The content for package BAC0004C will be persisted]LOG]!><time="14:21:09.279-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="resolvesource.cpp:3274">
    <![LOG[The package BAC0004C is found locally in the cache D:\_SMSTaskSequence\Packages\BAC0004C]LOG]!><time="14:21:09.279-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="resolvesource.cpp:3301">
    <![LOG[Opening image file D:\_SMSTaskSequence\Packages\BAC0004C\Win7 (x64) - Build and Capture v1.0.wim]LOG]!><time="14:21:09.279-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="wimfile.cpp:416">
    <![LOG[Image file BAC0004C version "" will be applied]LOG]!><time="14:21:09.311-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="installimage.cpp:463">
    <![LOG[Starting to apply image 2 from Win7 (x64) - Build and Capture v1.0.wim to D:\]LOG]!><time="14:21:09.311-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="installimage.cpp:671">
    <![LOG[Wiping D:\]LOG]!><time="14:21:09.311-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="installcommon.cpp:799">
    <![LOG[Set "D:\_SMSTaskSequence" to not be wiped]LOG]!><time="14:21:09.311-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="installcommon.cpp:808">
    <![LOG[Set "%OSDStateStorePath%" to not be wiped]LOG]!><time="14:21:09.311-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="installcommon.cpp:839">
    <![LOG[Set "%_SMSTSClientCache%" to not be wiped]LOG]!><time="14:21:09.311-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="installcommon.cpp:839">
    <![LOG[Set "%_SMSTSNewClientCachePathToCleanup%" to not be wiped]LOG]!><time="14:21:09.311-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="installcommon.cpp:839">
    <![LOG[Calculating expected free space.]LOG]!><time="14:21:09.326-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="380" file="installcommon.cpp:232">
    <![LOG[Reporting deletion progress.]LOG]!><time="14:21:09.420-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="380" file="installcommon.cpp:250">
    <![LOG[Skipping D:\System Volume Information for wipe]LOG]!><time="14:21:35.627-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="ccmfile.cpp:983">
    <![LOG[Skipping D:\_SMSTaskSequence for wipe]LOG]!><time="14:23:14.716-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="ccmfile.cpp:983">
    <![LOG[Successfully wiped D:\]LOG]!><time="14:23:14.716-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="installcommon.cpp:918">
    <![LOG[Applying image to D:\]LOG]!><time="14:23:14.716-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="installimage.cpp:710">
    <![LOG[Applying image 2 to volume D:]LOG]!><time="14:23:14.716-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="wimfile.cpp:607">
    <![LOG[Successfully applied image to D:\]LOG]!><time="14:30:47.797-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="installimage.cpp:730">
    <![LOG[OfflineRegistry::Init("D:\Windows")]LOG]!><time="14:30:47.797-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="offlineregistry.cpp:168">
    <![LOG[Loading offline registry hive "D:\Windows\system32\config\software" into HKLM\OfflineRegistry1]LOG]!><time="14:30:47.797-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="offlineregistry.cpp:60">
    <![LOG[Loading offline registry hive "D:\Windows\system32\config\system" into HKLM\OfflineRegistry2]LOG]!><time="14:30:49.830-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="offlineregistry.cpp:60">
    <![LOG[CurrentControlSet is mapped to ControlSet001]LOG]!><time="14:30:50.124-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="offlineregistry.cpp:215">
    <![LOG[System root for target OS is D:\Windows, System drive is D:]LOG]!><time="14:30:50.139-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="installimage.cpp:919">
    <![LOG[OS Version is 6.1]LOG]!><time="14:30:50.155-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="installimage.cpp:938">
    <![LOG[Successfully loaded a source BCD boot system]LOG]!><time="14:30:50.171-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="bootsystem.cpp:1196">
    <![LOG[SetupNewOS: Loaded source boot system from target volume "D:\"]LOG]!><time="14:30:50.171-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="installimage.cpp:1013">
    <![LOG[!sBootDevicePath.empty(), HRESULT=80004005 (e:\nts_sccm_release\sms\framework\tscore\bootvolume.cpp,34)]LOG]!><time="14:30:50.873-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="bootvolume.cpp:34">
    <![LOG[System partition not set]LOG]!><time="14:30:50.873-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="3" thread="1160" file="bootvolume.cpp:34">
    <![LOG[Unable to find the partition that contains the OS boot loaders. Please ensure the hard disks have been properly partitioned
    Unspecified error (Error: 80004005; Source: Windows)]LOG]!><time="14:30:50.873-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="3" thread="1160" file="bootvolume.cpp:62">
    <![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="14:30:50.873-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="commandline.cpp:228">
    <![LOG[Set command line: "bcdboot.exe" D:\Windows /l en-US]LOG]!><time="14:30:50.873-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="commandline.cpp:731">
    <![LOG[Executing command line: "bcdboot.exe" D:\Windows /l en-US]LOG]!><time="14:30:50.873-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="commandline.cpp:827">
    <![LOG[Process completed with exit code 15299]LOG]!><time="14:30:50.889-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="commandline.cpp:1123">
    <![LOG[uExitCode == 0, HRESULT=80004005 (e:\nts_sccm_release\sms\framework\tscore\bcdbooter.cpp,88)]LOG]!><time="14:30:50.889-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="bcdbooter.cpp:88">
    <![LOG[Bcdboot failed! bcdboot.exe D:\Windows /l en-US failed (15299)
    stdout:
    Failure when attempting to copy boot files.
    stderr:
    ]LOG]!><time="14:30:50.889-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="3" thread="1160" file="bcdbooter.cpp:88">
    <![LOG[TS::Boot::BcdBooter::InstallBootFilesAndConfigBCD (sTargetSystemRoot, this->defaultLanguage, sBootVolume), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,1065)]LOG]!><time="14:30:50.889-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="installimage.cpp:1065">
    <![LOG[Unloading offline SOFTWARE registry hive]LOG]!><time="14:30:50.889-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="offlineregistry.cpp:270">
    <![LOG[Unloading offline SYSTEM registry hive]LOG]!><time="14:30:52.766-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="offlineregistry.cpp:284">
    <![LOG[SetupNewOs(&pBootSystem), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,1543)]LOG]!><time="14:30:53.019-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="installimage.cpp:1543">
    <![LOG[Configure(), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,1721)]LOG]!><time="14:30:53.019-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="installimage.cpp:1721">
    <![LOG[Installation of image 2 in package BAC0004C failed to complete..
    Unspecified error (Error: 80004005; Source: Windows)]LOG]!><time="14:30:53.019-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="3" thread="1160" file="installimage.cpp:1732">
    <![LOG[installer.install(), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,1787)]LOG]!><time="14:30:53.019-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="installimage.cpp:1787">
    <![LOG[Closing image file D:\_SMSTaskSequence\Packages\BAC0004C\Win7 (x64) - Build and Capture v1.0.wim]LOG]!><time="14:30:53.019-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="wimfile.cpp:452">
    <![LOG[Entering ReleaseSource() for D:\_SMSTaskSequence\Packages\BAC0004C]LOG]!><time="14:30:53.034-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="resolvesource.cpp:3616">
    <![LOG[reference count 1 for the source D:\_SMSTaskSequence\Packages\BAC0004C before releasing]LOG]!><time="14:30:53.034-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="resolvesource.cpp:3623">
    <![LOG[Released the resolved source D:\_SMSTaskSequence\Packages\BAC0004C]LOG]!><time="14:30:53.034-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="1" thread="1160" file="resolvesource.cpp:3656">
    <![LOG[InstallImage( g_InstallPackageID, g_ImageIndex, targetVolume, ImageType_OS, g_ConfigPackageID, g_ConfigFileName, bOEMMedia, g_RunFromNet ), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\applyos\applyos.cpp,509)]LOG]!><time="14:30:53.034-600" date="02-21-2013" component="ApplyOperatingSystem" context="" type="0" thread="1160" file="applyos.cpp:509">
    <![LOG[Process completed with exit code 2147500037]LOG]!><time="14:30:53.034-600" date="02-21-2013" component="TSManager" context="" type="1" thread="1084" file="commandline.cpp:1123">
    <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="14:30:53.050-600" date="02-21-2013" component="TSManager" context="" type="1" thread="1084" file="instruction.cxx:3012">
    <![LOG[Failed to run the action: Apply Operating System.
    Unspecified error (Error: 80004005; Source: Windows)]LOG]!><time="14:30:53.050-600" date="02-21-2013" component="TSManager" context="" type="3" thread="1084" file="instruction.cxx:3103">
    <![LOG[MP server http://sccm2012svr.domain.local. Ports 80,443. CRL=false.]LOG]!><time="14:30:53.050-600" date="02-21-2013" component="TSManager" context="" type="1" thread="1084" file="utils.cpp:5300">
    <![LOG[Setting authenticator]LOG]!><time="14:30:53.066-600" date="02-21-2013" component="TSManager" context="" type="1" thread="1084" file="utils.cpp:5322">
    <![LOG[Set authenticator in transport]LOG]!><time="14:30:53.066-600" date="02-21-2013" component="TSManager" context="" type="0" thread="1084" file="libsmsmessaging.cpp:7751">
    <![LOG[Sending StatusMessage]LOG]!><time="14:30:53.151-600" date="02-21-2013" component="TSManager" context="" type="1" thread="1084" file="libsmsmessaging.cpp:4025">
    <![LOG[Setting message signatures.]LOG]!><time="14:30:53.151-600" date="02-21-2013" component="TSManager" context="" type="0" thread="1084" file="libsmsmessaging.cpp:1297">
    <![LOG[Setting the authenticator.]LOG]!><time="14:30:53.151-600" date="02-21-2013" component="TSManager" context="" type="0" thread="1084" file="libsmsmessaging.cpp:1327">
    <![LOG[CLibSMSMessageWinHttpTransport::Send: URL: sccm2012svr.domain.local:80 CCM_POST /ccm_system/request]LOG]!><time="14:30:53.151-600" date="02-21-2013" component="TSManager" context="" type="1" thread="1084" file="libsmsmessaging.cpp:8621">
    <![LOG[Request was succesful.]LOG]!><time="14:30:53.214-600" date="02-21-2013" component="TSManager" context="" type="0" thread="1084" file="libsmsmessaging.cpp:8956">
    <![LOG[Set a global environment variable _SMSTSLastActionRetCode=-2147467259]LOG]!><time="14:30:53.214-600" date="02-21-2013" component="TSManager" context="" type="0" thread="1084" file="executionenv.cxx:668">
    <![LOG[Set a global environment variable _SMSTSLastActionSucceeded=false]LOG]!><time="14:30:53.214-600" date="02-21-2013" component="TSManager" context="" type="0" thread="1084" file="executionenv.cxx:668">
    <![LOG[Clear local default environment]LOG]!><time="14:30:53.214-600" date="02-21-2013" component="TSManager" context="" type="0" thread="1084" file="executionenv.cxx:807">
    <![LOG[Let the parent group (Install Operating System) decides whether to continue execution]LOG]!><time="14:30:53.214-600" date="02-21-2013" component="TSManager" context="" type="0" thread="1084" file="instruction.cxx:3212">
    <![LOG[The execution of the group (Install Operating System) has failed and the execution has been aborted. An action failed.
    Operation aborted (Error: 80004004; Source: Windows)]LOG]!><time="14:30:53.230-600" date="02-21-2013" component="TSManager" context="" type="3" thread="1084" file="instruction.cxx:2425">
    <![LOG[Failed to run the last action: Apply Operating System. Execution of task sequence failed.
    Unspecified error (Error: 80004005; Source: Windows)]LOG]!><time="14:30:53.230-600" date="02-21-2013" component="TSManager" context="" type="3" thread="1084" file="engine.cxx:214">
    <![LOG[MP server http://sccm2012svr.domain.local. Ports 80,443. CRL=false.]LOG]!><time="14:30:53.230-600" date="02-21-2013" component="TSManager" context="" type="1" thread="1084" file="utils.cpp:5300">
    <![LOG[Setting authenticator]LOG]!><time="14:30:53.252-600" date="02-21-2013" component="TSManager" context="" type="1" thread="1084" file="utils.cpp:5322">
    <![LOG[Set authenticator in transport]LOG]!><time="14:30:53.252-600" date="02-21-2013" component="TSManager" context="" type="0" thread="1084" file="libsmsmessaging.cpp:7751">
    <![LOG[Sending StatusMessage]LOG]!><time="14:30:53.252-600" date="02-21-2013" component="TSManager" context="" type="1" thread="1084" file="libsmsmessaging.cpp:4025">
    <![LOG[Setting message signatures.]LOG]!><time="14:30:53.268-600" date="02-21-2013" component="TSManager" context="" type="0" thread="1084" file="libsmsmessaging.cpp:1297">
    <![LOG[Setting the authenticator.]LOG]!><time="14:30:53.268-600" date="02-21-2013" component="TSManager" context="" type="0" thread="1084" file="libsmsmessaging.cpp:1327">
    <![LOG[CLibSMSMessageWinHttpTransport::Send: URL: sccm2012svr.domain.local:80 CCM_POST /ccm_system/request]LOG]!><time="14:30:53.268-600" date="02-21-2013" component="TSManager" context="" type="1" thread="1084" file="libsmsmessaging.cpp:8621">
    <![LOG[Request was succesful.]LOG]!><time="14:30:53.315-600" date="02-21-2013" component="TSManager" context="" type="0" thread="1084" file="libsmsmessaging.cpp:8956">
    <![LOG[Executing command line: X:\windows\system32\cmd.exe /k]LOG]!><time="14:31:12.004-600" date="02-21-2013" component="TSBootShell" context="" type="1" thread="784" file="bootshell.cpp:857">
    <![LOG[The command completed successfully.]LOG]!><time="14:31:12.004-600" date="02-21-2013" component="TSBootShell" context="" type="1" thread="784" file="bootshell.cpp:939">
    <![LOG[Successfully launched command shell.]LOG]!><time="14:31:12.004-600" date="02-21-2013" component="TSBootShell" context="" type="1" thread="784" file="bootshell.cpp:430">
    http://www.dreamension.net

    I am getting the exact same issue as the original post, however strangely only with one model of computer (HP Compaq 6300 Pro tower desktops).
    We are using SCCM 2012 SP1 but are not using PXE, USB media only.
    Same symptoms, running a deployment task sequence for x64 Windows 7 Enterprise makes it all the way through the Apply OS step which installs a .wim I've captured previously and fails when attempting to copy down the WinPE environment to continue the task
    sequence.
    All boot images have been updated to WinPE 4.0 and have the according driver packs added. My format and partition step creates 1 partition to use the whole drive. We do not use a separate partition for system reserved because our FDE product does not play
    well with encrypting that partition because it is not an active partition.
    Running the initial attempt from an x64 boot key results in failure, but running on an x86 boot key that requires the x64 boot image for deployment will complete. After the initial failure from the x64 key, the machine can't even be deployed from an x86
    boot key because it still fails to write to the partition. No combination of diskpart and format from the command prompt has been able to get it deployed yet.
    Any other ideas or steps to troubleshoot? I'm open to anything because this is hindering our ability to fully migrate to our 2012 environment.

  • Internal error: assertion failed - still won't work in LR4

    When I try to export an image from LR4 I get the "internal error: assertion failed" error. I'm running Lion 10.7.3 on a MacBook.
    I started by reading the thread at:
    Re: "internal error: assertion failed" when exporting via LR4
    tinaTS offered what she thought was the correct fix but her suggestion didn't apply to my situation. She suggested moving user presets but I don't have any to move.
    I also tried the basic “repair permissions” and Lion restart with no luck. 
    Kirk Marcus suggested removing the com.adobe.Lightroom4.plist from my library. This didn't help, still getting the error.
    Then I removed these files as well:
    com.adobe.Lightroom3.plist
    com.adobe.Lightroom2.plist
    com.adobe.Lightroom3.LSSharedFileList.plist
    com.adobe.Lightroom3.plist.lockfile
    None of that helped.
    I tried removing all files that began with com.adobe.Lightroom and then creating a new library and just importing one picture but I still get the same "internal error" VERY FRUSTRATING.
    Obviously, the program is worthless to me if I can't export images.
    Additional suggestions would be appreciated. I see that lots of people on the internet are having this problem but none of the suggestions I've found so far have been of any help.

    Thanks for the suggestions. I tried removing the com.adobe.Lightroom4.plist. This didn't help, still getting the error.
    Then I removed these files as well:
    com.adobe.Lightroom3.plist
    com.adobe.Lightroom2.plist
    com.adobe.Lightroom3.LSSharedFileList.plist
    com.adobe.Lightroom3.plist.lockfile
    None of that helped.
    I tried creating a new library and just importing one picture but I still get the same "internal error" VERY FRUSTRATING.

  • System Image Utility always fails, why?

    Hi everyone,
    on my clean and fresh install of 10.7.4 Server the System Image Utility always fails to create an image. I want to create a NetInstall image and have put the OS X Lion Installer in /Applications. I can select it in SIU and choose to create a NetInstall image. It asks for the admin pw and always presents an error at the very end: Image creation failed. An unknown error has occured.
    If I select to create a NetBoot image instead it fails directly after clicking on the Create button with this slightly different message: Image creation failed. An error has occured. At least it’s no unknown error…
    Any ideas what might be causing this? I have succesfully created NetInstall images with 10.6 Server and 10.8 Server, but 10.7 Server somehow won’t play nice.
    Thanks
    Björn

    Hi Brian,
    I first deleted the Installer and redownloaded it from the App Store, just to make sure there was no problem with it. Even though I now have the 10.7.4 Installer (had 10.7.0 before) nothing has changed. I then went on to set the log level as suggested. I now get different errors based on the chosen log level.
    Log level set to debug:
    Image creation failed.
    *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil
    Log level set to verbose:
    Image creation failed.
    An unknown error has occurred.
    I did not see anything helpful in the logs unfortunately. The only noticeable thing mentioned was: Failed to create image from installer media.
    Any additional ideas? I will attach both logs here, just in case.
    VERBOSE LOG:
    Starting image creation.
    Workflow Started (2012-09-08 14:08:00 +0200)
    Mac OS X Server 10.7.4 (11E53), System Image Utility 10.7.3 (543)
    Starting action: Define Image Source (1.3)
    Finished running action: Define Image Source
    Starting action: Create Image (1.6.2)
    Starting image creation process...
    Create NetInstall Image
    Initiating NetInstall from Installer media.
    Creating working path at /Users/vm/Desktop/NetInstall of Install Mac OS X Lion
    Creating disk image (Size: 4062 MB)
    Finalizing disk image.
    created: /Users/vm/Desktop/NetInstall of Install Mac OS X Lion/NetInstall.dmg
    Attaching disk image
    Copying /Volumes/Mac OS X Install ESD
    Preparing the kernel and boot loader for the boot image
    /Users/vm/Desktop/NetInstall of Install Mac OS X Lion/i386
    /Users/vm/Desktop/NetInstall of Install Mac OS X Lion/i386/x86_64
    Copying /Volumes/Mac OS X Install ESD/boot.efi
    Copying /Volumes/Mac OS X Install ESD/System/Library/CoreServices/PlatformSupport.plist
    Performing post install cleanup
    Detaching disk image
    "disk4" unmounted.
    "disk4" ejected.
    Correcting permissions. 501:20 /Users/vm/Desktop/NetInstall of Install Mac OS X Lion
    Script is done.
    Failed to create image from installer media.
    An unknown error has occurred.
    NetInstall creation failed.
    Image creation process finished...
    Stopping image creation.
    Image creation failed.
    DEBUG LOG:
    Starting image creation.
    Workflow Started (2012-09-08 13:59:22 +0200)
    Mac OS X Server 10.7.4 (11E53), System Image Utility 10.7.3 (543)
    Starting action: Define Image Source (1.3)
    Finished running action: Define Image Source
    Starting action: Create Image (1.6.2)
    Starting image creation process...
    Create NetInstall Image
    Initiating NetInstall from Installer media.
    progressPrefix="_progress"
    ++ progressPrefix=_progress
    scriptsDebugKey="DEBUG"
    ++ scriptsDebugKey=DEBUG
    imageIsUDIFKey="1"
    ++ imageIsUDIFKey=1
    mountPoint=""
    ++ mountPoint=
    ownershipInfoKey="501:20"
    ++ ownershipInfoKey=501:20
    destVolFSType="HFS+"
    ++ destVolFSType=HFS+
    installSource="/Volumes/Mac OS X Install ESD"
    ++ installSource='/Volumes/Mac OS X Install ESD'
    dmgTarget="NetInstall"
    ++ dmgTarget=NetInstall
    destPath="/Users/vm/Desktop/NetInstall of Install Mac OS X Lion"
    ++ destPath='/Users/vm/Desktop/NetInstall of Install Mac OS X Lion'
    dmgVolName="NetInstall"
    ++ dmgVolName=NetInstall
    . "${1}/createCommon.sh"
    + . /tmp/niutemp.Yv8Z6Mqx/createCommon.sh
    # createCommon.sh
    # Common functionality for the Image creation process.
    # sourced in by the various SIU scripts
    # Copyright © 2007-2011 Apple Inc. All rights reserved.
    # Using dscl, create a user account
    AddLocalUser()
    # $1 volume whose local node database to modify
    # $2 long name
    # $3 short name
    # $4 isAdminUser key
    # $5 password data
    # $6 password hint
    # $7 user picture path
    # $8 Language string
    local databasePath="/Local/Default/Users/${3}"
    local targetVol="${1}"
    # Find a free UID between 501 and 599
    for ((i=501; i<600; i++)); do
    output=`/usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -search /Local/Default/Users UniqueID $i`
    # If there is already an account dscl returns it, so we're looking for an empty return value.
    if [ "$output" == "" ]; then
    break
    fi
    done
    # Create the user record
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -create $databasePath
    if [ $? != 0 ]; then
    echo "Failed to create '${databasePath}'."
    return 1
    fi
    # Add long name
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath RealName "${2}"
    if [ $? != 0 ]; then
    echo "Failed to set the RealName."
    return 1
    fi
    # Add PrimaryGroupID
    if [ "${4}" == 1 ]; then
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath PrimaryGroupID 80
    else
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath PrimaryGroupID 20
    fi
    if [ $? != 0 ]; then
    echo "Failed to set the PrimaryGroupID."
    return 1
    fi
    # Add UniqueID
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath UniqueID ${i}
    if [ $? != 0 ]; then
    echo "Failed to set the UniqueID."
    return 1
    fi
    # Add Home Directory entry
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath NFSHomeDirectory /Users/${3}
    if [ $? != 0 ]; then
    echo "Failed to set the NFSHomeDirectory."
    fi
    if [ "${6}" != "" ]; then
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath AuthenticationHint "${6}"
    if [ $? != 0 ]; then
    echo "Failed to set the AuthenticationHint."
    return 1
    fi
    fi
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath picture "${7}"
    if [ $? != 0 ]; then
    echo "Failed to set the picture."
    return 1
    fi
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -passwd $databasePath "${5}"
    if [ $? != 0 ]; then
    echo "Failed to set the passwd."
    return 1
    fi
    # Add shell
    /usr/bin/dscl -f "${targetVol}/var/db/dslocal/nodes/Default" localonly -append $databasePath UserShell "/bin/bash"
    if [ $? != 0 ]; then
    echo "Failed to set the UserShell."
    return 1
    fi
    # Create Home directory
    if [ -e "/System/Library/User Template/${8}.lproj/" ]; then
    /usr/bin/ditto "/System/Library/User Template/${8}.lproj/" "${targetVol}/Users/${3}"
    else
    /usr/bin/ditto "/System/Library/User Template/English.lproj/" "${targetVol}/Users/${3}"
    fi
    if [ $? != 0 ]; then
    echo "Failed to copy the User Template."
    return 1
    fi
    /usr/sbin/chown -R $i:$i "${targetVol}/Users/${3}"
    if [ $? != 0 ]; then
    echo "Failed to set ownership on the User folder."
    return 1
    fi
    # Copies a list of files (full paths contained in the file at $1) from source to the path specified in $2
    CopyEntriesFromFileToPath()
    local theFile="$1"
    local theDest="$2"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    while read FILE
    do
    if [ -e "${FILE}" ]; then
    local leafName=`basename "${FILE}"`
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Copying ${FILE}."
    fi
    /usr/bin/ditto $opt "${FILE}" "${theDest}/${leafName}" || return 1
    fi
    done < "${theFile}"
    return 0
    # Copies a list of packages (full path, destination pairs contained in the file at $1) from source to .../System/Installation/Packages/
    CopyPackagesWithDestinationsFromFile()
    local theFile="$1"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    while read FILE
    do
    if [ -e "${FILE}" ]; then
    local leafName=`basename "${FILE}"`
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Copying ${FILE}."
    fi
    read SUB_PATH
    /usr/bin/ditto $opt "${FILE}" "${mountPoint}/Packages/${SUB_PATH}${leafName}" || return 1
    fi
    done < "${theFile}"
    return 0
    # Create an installer package in ${1} wrapping the supplied script ${2}
    CreateInstallPackageForScript()
    local tempDir="$1"
    local scriptPath="$2"
    local scriptName=`basename "${scriptPath}"`
    local entryDir=`pwd`
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Create installer for script ${scriptName}"
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    fi
    # shouldn't exist on entry...
    if [ -e "${tempDir}/emptyDir" ]; then
    /bin/rm -rf "${tempDir}/emptyDir"
    fi
    # make some directories to work in
    /bin/mkdir $opt -p "${tempDir}/${scriptName}.pkg/Contents/Resources" || return 1
    /bin/mkdir $opt "${tempDir}/emptyDir" || return 1
    # Create Archive.pax.gz
    cd "${tempDir}/emptyDir"
    /bin/pax -w -x cpio -f "${tempDir}/${scriptName}.pkg/Contents/Archive.pax" .
    /usr/bin/gzip "${tempDir}/${scriptName}.pkg/Contents/Archive.pax"
    cd "${entryDir}"
    # Create the Archive.bom file
    /usr/bin/mkbom "${tempDir}/emptyDir/" "${tempDir}/${scriptName}.pkg/Contents/Archive.bom" || return 1
    # Create the Info.plist
    /bin/cat > "${tempDir}/${scriptName}.pkg/Contents/Info.plist" << END
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>CFBundleIdentifier</key>
    <string>com.apple.server.SystemImageUtility.${scriptName}</string>
    <key>CFBundleShortVersionString</key>
    <string>1</string>
    <key>IFMajorVersion</key>
    <integer>1</integer>
    <key>IFMinorVersion</key>
    <integer>0</integer>
    <key>IFPkgFlagDefaultLocation</key>
    <string>/tmp</string>
    <key>IFPkgFlagInstallFat</key>
    <false/>
    <key>IFPkgFlagIsRequired</key>
    <false/>
    <key>IFPkgFormatVersion</key>
    <real>0.10000000149011612</real>
    </dict>
    </plist>
    END
    echo "pkmkrpkg1" > "${tempDir}/${scriptName}.pkg/Contents/PkgInfo"
    echo "major: 1\nminor: 0" > "${tempDir}/${scriptName}.pkg/Contents/Resources/package_version"
    # Copy the script
    /bin/cp "$scriptPath" "${tempDir}/${scriptName}.pkg/Contents/Resources/postflight"
    # clean up
    /bin/rm -r "${tempDir}/emptyDir"
    return 0
    # Validate or create the requested directory
    CreateOrValidatePath()
    local targetDir="$1"
    if [ ! -d "${targetDir}" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Creating working path at ${targetDir}"
    fi
    /bin/mkdir -p "${targetDir}" || return 1
    fi
    # If any exist, apply any user accounts
    CreateUserAccounts()
    # $1 volume whose local node database to modify
    local count="${#userFullName[*]}"
    local targetVol="${1}"
    if [ $count -gt 0 ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Adding $count user account(s) to the image"
    fi
    for ((index=0; index<$count; index++)); do
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Adding user ${userFullName[$index]}"
    fi
    #lay down user here
    AddLocalUser "${targetVol}" "${userFullName[$index]}" "${userUnixName[$index]}" "${userIsAdmin[$index]}" "${userPassword[$index]}" "${userPassHint[$index]}" "${userImagePath[$index]}" "${userLanguage[$index]}"
    if [ $? != 0 ]; then
    echo "Failed to create the User '${userUnixName[$index]}'."
    return 1
    fi
    done
    # "touch"
    /usr/bin/touch "${targetVol}/private/var/db/.AppleSetupDone"
    /usr/bin/touch "${targetVol}/Library/Receipts/.SetupRegComplete"
    fi
    # retry the hdiutil detach until we either time out or it succeeds
    retry_hdiutil_detach()
    local mount_point="${1}"
    local tries=0
    local forceAt=0
    local limit=24
    local opt=""
    forceAt=$(($limit - 1))
    while [ $tries -lt $limit ]; do
    tries=$(( tries + 1 ))
    /bin/sleep 5
    echo "Attempting to detach the disk image again..."
    /usr/bin/hdiutil detach "${mount_point}" $opt
    if [ $? -ne 0 ]; then
    # Dump a list of any still open files on the mountPoint
    if [ "${scriptsDebugKey}" == "DEBUG" ]; then
    /usr/sbin/lsof +fg "${mount_point}"
    fi
    if [ $tries -eq $forceAt ]; then
    echo "Failed to detach disk image at '${mount_point}' normally, adding -force."
    opt="-force"
    fi
    if [ $tries -eq $limit ]; then
    echo "Failed to detach disk image at '${mount_point}'."
    exit 1
    fi
    else
    tries=$limit
    fi
    done
    # Create the dyld shared cache files
    DetachAndRemoveMount()
    local theMount="${1}"
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Detaching disk image"
    # Dump a list of any still open files on the mountPoint
    if [ "${scriptsDebugKey}" == "DEBUG" ]; then
    /usr/sbin/lsof +fg "${theMount}"
    fi
    fi
    # Finally detach the image and dispose the mountPoint directory
    /usr/bin/hdiutil detach "${theMount}" || retry_hdiutil_detach "${theMount}" || return 1
    /bin/rmdir "${theMount}" || return 1
    return 0
    # If the pieces exist, enable remote access for the shell image
    EnableRemoteAccess()
    local srcVol="${1}"
    local opt=""
    if [ -e "${srcVol}/usr/lib/pam/pam_serialnumber.so.2" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Enabling shell image remote access support"
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    fi
    # install some things (again which aren't part of BaseSystem) needed for remote ASR installs
    /usr/bin/ditto $opt "${srcVol}/usr/lib/pam/pam_serialnumber.so.2" "${mountPoint}/usr/lib/pam/pam_serialnumber.so.2" || return 1
    if [ -e "${srcVol}/usr/sbin/installer" ]; then
    /usr/bin/ditto $opt "${srcVol}/usr/sbin/installer" "${mountPoint}/usr/sbin/installer" || return 1
    fi
    # copy the sshd config and add our keys to the end of it
    if [ -e "${srcVol}/etc/sshd_config" ]; then
    /bin/cat "${srcVol}/etc/sshd_config" - > "${mountPoint}/etc/sshd_config" << END
    HostKey /private/var/tmp/ssh_host_key
    HostKey /private/var/tmp/ssh_host_rsa_key
    HostKey /private/var/tmp/ssh_host_dsa_key
    END
    fi
    fi
    return 0
    # If it exists, install the sharing names and/or directory binding support to the install image
    HandleNetBootClientHelper()
    local tempDir="${1}"
    local targetVol="${2}"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    if [ -e  "${tempDir}/bindingNames.plist" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Installing Directory Service binding information"
    fi
    /usr/bin/ditto $opt "${tempDir}/bindingNames.plist" "${targetVol}/etc/bindingNames.plist" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/etc/bindingNames.plist"
    /bin/chmod 644 "${targetVol}/etc/bindingNames.plist"
    fi
    if [ -e  "${tempDir}/sharingNames.plist" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Installing Sharing Names support"
    fi
    /usr/bin/ditto $opt "${tempDir}/sharingNames.plist" "${targetVol}/etc/sharingNames.plist" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/etc/sharingNames.plist"
    /bin/chmod 644 "${targetVol}/etc/sharingNames.plist"
    fi
    if [ -e  "${tempDir}/NetBootClientHelper" ]; then
    /usr/bin/ditto $opt "${tempDir}/NetBootClientHelper" "${targetVol}/usr/sbin/NetBootClientHelper" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/usr/sbin/NetBootClientHelper"
    /bin/chmod 555 "${targetVol}/usr/sbin/NetBootClientHelper"
    /usr/bin/ditto $opt "${tempDir}/com.apple.NetBootClientHelper.plist" "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist"
    /bin/chmod 644 "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist"
    # finally, make sure it isn't disabled...
    /usr/libexec/PlistBuddy -c "Delete :com.apple.NetBootClientHelper" "${targetVol}/var/db/launchd.db/com.apple.launchd/overrides.plist" > /dev/null 2>&1
    fi
    return 0
    # If any exist, install configuration profiles to the install image
    InstallConfigurationProfiles()
    local tempDir="${1}"
    local targetVol="${2}"
    local profilesDir="${targetVol}/var/db/ConfigurationProfiles"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    if [ -e  "${tempDir}/configProfiles.txt" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Installing Configuration Profiles"
    fi
    /bin/mkdir -p "${profilesDir}/Setup" || return 1
    # Make sure the perms are correct
    /usr/sbin/chown root:wheel "${profilesDir}"
    /bin/chmod 755 "${profilesDir}"
    /usr/sbin/chown root:wheel "${profilesDir}/Setup"
    /bin/chmod 755 "${profilesDir}/Setup"
    /usr/bin/touch "${profilesDir}/.profilesAreInstalled"
    CopyEntriesFromFileToPath "${tempDir}/configProfiles.txt" "${profilesDir}/Setup" || return 1
    # Enable MCX debugging
    if [ 1 == 1 ]; then
    if [ -e  "${targetVol}/Library/Preferences/com.apple.MCXDebug.plist" ]; then
    /usr/libexec/PlistBuddy -c "Delete :debugOutput" "${targetVol}/Library/Preferences/com.apple.MCXDebug.plist" > /dev/null 2>&1
    /usr/libexec/PlistBuddy -c "Delete :collateLogs" "${targetVol}/Library/Preferences/com.apple.MCXDebug.plist" > /dev/null 2>&1
    fi
    /usr/libexec/PlistBuddy -c "Add :debugOutput string -2" "${targetVol}/Library/Preferences/com.apple.MCXDebug.plist" > /dev/null 2>&1
    /usr/libexec/PlistBuddy -c "Add :collateLogs string 1" "${targetVol}/Library/Preferences/com.apple.MCXDebug.plist" > /dev/null 2>&1
    fi
    fi
    # Converts a list of scripts (full paths contained in the file at $1) into packages in $3
    InstallScriptsFromFile()
    local tempDir="${1}"
    local theFile="${2}"
    local targetDir="${3}"
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Converting scripts into install packages"
    fi
    while read FILE
    do
    if [ -e "${FILE}" ]; then
    # make an installer package out of the script
    CreateInstallPackageForScript "$tempDir" "${FILE}" || return 1
    # copy the resulting package to the Packages directory
    local leafName=`basename "${FILE}"`
    /usr/bin/ditto $opt "${tempDir}/${leafName}.pkg" "${targetDir}/${leafName}.pkg" || return 1
    # clean up
    /bin/rm -r "${tempDir}/${leafName}.pkg"
    fi
    done < "${theFile}"
    return 0
    # Prepare the source by deleting stuff we don't want to copy if sourcing a volume
    PostFlightDestination()
    local tempDir="${1}"
    local destDir="${2}"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Performing post install cleanup"
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
    opt="-v"
    fi
    fi
    # delete the DS indices to force reindexing...
    if [ -e "${mountPoint}/var/db/dslocal/indices/Default/index" ]; then
    /bin/rm $opt "${mountPoint}/var/db/dslocal/indices/Default/index"
    fi
    # detach the disk and remove the mount folder
    DetachAndRemoveMount "${mountPoint}"
    if [ $? != 0 ]; then
    echo "Failed to detach and clean up the mount at '${mountPoint}'."
    return 1
    fi
    echo "Correcting permissions. ${ownershipInfoKey} $destDir"
    /usr/sbin/chown -R "${ownershipInfoKey}" "$destDir"
    # Prepare the source by deleting stuff we don't want to copy if sourcing a volume
    PreCleanSource()
    local srcVol="$1"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
    opt="-v"
    fi
    fi
    if [ -e "$srcVol/private/var/vm/swapfile*" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Removing swapfiles on $1"
    fi
    /bin/rm $opt "$srcVol/private/var/vm/swapfile*"
    fi
    if [ -d "$srcVol/private/tmp" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Cleaning out /private/tmp on $1"
    fi
    /bin/rm -r $opt "$srcVol/private/tmp/*"
    fi
    if [ -d "$srcVol/private/var/tmp" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Cleaning out /private/var/tmp on $1"
    fi
    /bin/rm -r $opt "$srcVol/private/var/tmp/*"
    fi
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Cleaning out devices and volumes on $1"
    fi
    if [ -d "$srcVol/Volumes" ]; then
    /bin/rm -r $opt "$srcVol/Volumes/*"
    fi
    if [ -d "$srcVol/dev" ]; then
    /bin/rm $opt "$srcVol/dev/*"
    fi
    if [ -d "$srcVol/private/var/run" ]; then
    /bin/rm -r $opt "$srcVol/private/var/run/*"
    fi
    # Copy kernel and build the kext cache on the boot image
    PrepareKernelAndKextCache()
    local srcDir="$1"
    local destDir="$2"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Preparing the kernel and kext cache for t          /bin/rmdir "${theMount}" || return 1
    return 0
    # If the pieces exist, enable remote access for the shell image
    EnableRemoteAccess()
    local srcVol="${1}"
    local opt=""
    if [ -e "${srcVol}/usr/lib/pam/pam_serialnumber.so.2" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Enabling shell image remote access support"
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    fi
    # install some things (again which aren't part of BaseSystem) needed for remote ASR installs
    /usr/bin/ditto $opt "${srcVol}/usr/lib/pam/pam_serialnumber.so.2" "${mountPoint}/usr/lib/pam/pam_serialnumber.so.2" || return 1
    if [ -e "${srcVol}/usr/sbin/installer" ]; then
    /usr/bin/ditto $opt "${srcVol}/usr/sbin/installer" "${mountPoint}/usr/sbin/installer" || return 1
    fi
    # copy the sshd config and add our keys to the end of it
    if [ -e "${srcVol}/etc/sshd_config" ]; then
    /bin/cat "${srcVol}/etc/sshd_config" - > "${mountPoint}/etc/sshd_config" << END
    HostKey /private/var/tmp/ssh_host_key
    HostKey /private/var/tmp/ssh_host_rsa_key
    HostKey /private/var/tmp/ssh_host_dsa_key
    END
    fi
    fi
    return 0
    # If it exists, install the sharing names and/or directory binding support to the install image
    HandleNetBootClientHelper()
    local tempDir="${1}"
    local targetVol="${2}"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    if [ -e  "${tempDir}/bindingNames.plist" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Installing Directory Service binding information"
    fi
    /usr/bin/ditto $opt "${tempDir}/bindingNames.plist" "${targetVol}/etc/bindingNames.plist" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/etc/bindingNames.plist"
    /bin/chmod 644 "${targetVol}/etc/bindingNames.plist"
    fi
    if [ -e  "${tempDir}/sharingNames.plist" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Installing Sharing Names support"
    fi
    /usr/bin/ditto $opt "${tempDir}/sharingNames.plist" "${targetVol}/etc/sharingNames.plist" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/etc/sharingNames.plist"
    /bin/chmod 644 "${targetVol}/etc/sharingNames.plist"
    fi
    if [ -e  "${tempDir}/NetBootClientHelper" ]; then
    /usr/bin/ditto $opt "${tempDir}/NetBootClientHelper" "${targetVol}/usr/sbin/NetBootClientHelper" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/usr/sbin/NetBootClientHelper"
    /bin/chmod 555 "${targetVol}/usr/sbin/NetBootClientHelper"
    /usr/bin/ditto $opt "${tempDir}/com.apple.NetBootClientHelper.plist" "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist"
    /bin/chmod 644 "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist"
    # finally, make sure it isn't disabled...
    /usr/libexmountPoint=`mktemp -d "/tmp/mnt.XXXXXXXX"`
    errExit()
    echo "Execution of '`basename ${0}`' failed. Cleaning up."
    # detach the disk and remove the mount folder
    DetachAndRemoveMount "${mountPoint}"
    /bin/rm -r "${destPath}"
    exit 1
    # Set up for script debugging
    debug_opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
    debug_opt="-v"
    fi
    # Prepare the destination
    CreateOrValidatePath "$destPath" || errExit
    # update progress information
    echo "${progressPrefix}_creatingImage_"
    if [ -e "${installSource}/BaseSystem.dmg" ]; then
    size=$2
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
    echo "Creating disk image (Size: $size MB)"
    fi
    /usr/bin/hdiutil create "$destPath/$dmgTarget" -megabytes $size -volname "${dmgVolName}" -uid 0 -gid 80 -mode 1775 -layout "SPUD" -fs "$destVolFSType" -stretch 500g -ov -puppetstrings || errExit
    echo "${progressPrefix}_copyingSource_"
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
    echo "Attaching disk image"
    fi
    /usr/bin/hdiutil attach "${destPath}/${dmgTarget}.dmg" -owners on -nobrowse -noautoopen -mountpoint "${mountPoint}" -quiet || errExit
    # Copy source Volume base system to
    /usr/bin/ditto $debug_opt "${installSource}" "${mountPoint}" || errExit
    else
    echo "This does not appear to be a Mac OS X Install DVD."
    errExit
    fi
    # If adding any additional packages or scripts
    if [ -e "${1}/OSInstall.collection" ]; then
    /usr/bin/ditto $debug_opt "${1}/OSInstall.collection" "${mountPoint}/Packages/OSInstall.collection" || errExit
    /usr/sbin/chown root:wheel "${mountPoint}/Packages/OSInstall.collection"
    # If adding any additional packages
    if [ -e "${1}/additionalPackages.txt" ]; then
    CopyPackagesWithDestinationsFromFile "${1}/additionalPackages.txt" || errExit
    fi
    # If adding any scripts
    if [ -e "${1}/additionalScripts.txt" ]; then
    InstallScriptsFromFile "${1}" "${1}/additionalScripts.txt" "${mountPoint}/Packages" || errExit
    fi
    fi
    # If it exists, install the partition data onto the install image
    ProcessAutoPartition "${1}" || errExit
    # If it exists, install minstallconfig.xml (AutoInstall data) onto the install image
    ProcessMinInstall "${1}" || errExit
    # update progress information
    echo "${progressPrefix}_buildingBooter_"
    # Copy kernel and boot loader
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Preparing the kernel and boot loader for the boot image"
    fi
    # make sure this doesn't exist
    if [ -e "${destPath}/i386" ]; then
    /bin/rm -rf "${destPath}/i386"
    fi
    /bin/mkdir -p $debug_opt "${destPath}/i386/x86_64" || errExit
    # copy these directly off the install media
    /usr/bin/ditto $debug_opt "${installSource}/boot.efi" "${destPath}/i386/booter" || errExit
    /usr/bin/chflags nohidden "${destPath}/i386/booter"
    # Grab the relevant portion of the com.apple.Boot.plist
    kernelFlags=`/usr/libexec/PlistBuddy -c "print :'Kernel Flags'" "${installSource}/Library/Preferences/SystemConfiguration/com.apple.Boot.plist"`
    /usr/libexec/PlistBuddy -c "add :'Kernel Flags' string ${kernelFlags}" "${destPath}/i386/com.apple.Boot.plist" > /dev/null 2>&1
    /usr/bin/ditto $debug_opt "${installSource}/System/Library/CoreServices/PlatformSupport.plist" "${destPath}/i386/PlatformSupport.plist" || errExit
    # extract the kernel & kernelcache for the boot shell
    /usr/bin/lipo -extract i386 "${mountPoint}/kernelcache" -output "${destPath}/i386/kernelcache" || errExit
    /usr/bin/lipo -extract x86_64 "${mountPoint}/kernelcache" -output "${destPath}/i386/x86_64/kernelcache" || errExit
    # Apply choice changes, if any
    if [ -e "${1}/MacOSXInstaller.choiceChanges" ]; then
    echo "Copy over package choice selection."
    /usr/bin/ditto $debug_opt "${1}/MacOSXInstaller.choiceChanges" "${mountPoint}/Packages/Extras/MacOSXInstaller.choiceChanges"
    fi
    # update progress information
    echo "${progressPrefix}_finishingUp_"
    # perform the final cleanup
    PostFlightDestination "${1}" "$destPath" || errExit
    errExit
    Vol/private/tmp" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Cleaning out /private/tmp on $1"
    fi
    /bin/rm -r $opt "$srcVol/private/tmp/*"
    fi
    if [ -d "$srcVol/private/var/tmp" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Cleaning out /private/var/tmp on $1"
    fi
    /bin/rm -r $opt "$srcVol/private/var/tmp/*"
    fi
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Cleaning out devices and volumes on $1"
    fi
    if [ -d "$srcVol/Volumes" ]; then
    /bin/rm -r $opt "$srcVol/Volumes/*"
    fi
    if [ -d "$srcVol/dev" ]; then
    /bin/rm $opt "$srcVol/dev/*"
    fi
    if [ -d "$srcVol/private/var/run" ]; then
    /bin/rm -r $opt "$srcVol/private/var/run/*"
    fi
    # Copy kernel and build the kext cache on the boot image
    PrepareKernelAndKextCache()
    local srcDir="$1"
    local destDir="$2"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Preparing the kernel and kext cache for tPERCENT:0.000000
    PERCENT:4.332841
    PERCENT:8.985722
    PERCENT:12.358444
    PERCENT:14.524864
    PERCENT:16.617430
    PERCENT:19.522402
    PERCENT:21.614967
    PERCENT:23.535204
    PERCENT:26.070902
    PERCENT:29.271296
    PERCENT:33.111767
    PERCENT:38.847858
    PERCENT:42.343674
    PERCENT:44.707043
    PERCENT:46.578041
    PERCENT:49.138355
    PERCENT:51.772526
    PERCENT:55.563763
    PERCENT:58.567207
    PERCENT:62.210735
    PERCENT:64.795670
    PERCENT:69.719353
    PERCENT:74.741508
    PERCENT:77.055641
    PERCENT:79.591331
    PERCENT:83.013290
    PERCENT:85.548988
    PERCENT:88.010834
    PERCENT:91.728210
    PERCENT:97.710487
    PERCENT:100.000000
    PERCENT:-1.000000
    Finalizing disk image.
    created: /Users/vm/Desktop/NetInstall of Install Mac OS X Lion/NetInstall.dmg
    /bin/rmdir "${theMount}" || return 1
    return 0
    # If the pieces exist, enable remote access for the shell image
    EnableRemoteAccess()
    local srcVol="${1}"
    local opt=""
    if [ -e "${srcVol}/usr/lib/pam/pam_serialnumber.so.2" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Enabling shell image remote access support"
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    fi
    # install some things (again which aren't part of BaseSystem) needed for remote ASR installs
    /usr/bin/ditto $opt "${srcVol}/usr/lib/pam/pam_serialnumber.so.2" "${mountPoint}/usr/lib/pam/pam_serialnumber.so.2" || return 1
    if [ -e "${srcVol}/usr/sbin/installer" ]; then
    /usr/bin/ditto $opt "${srcVol}/usr/sbin/installer" "${mountPoint}/usr/sbin/installer" || return 1
    fi
    # copy the sshd config and add our keys to the end of it
    if [ -e "${srcVol}/etc/sshd_config" ]; then
    /bin/cat "${srcVol}/etc/sshd_config" - > Creating working path at /Users/vm/Desktop/NetInstall of Install Mac OS X Lion
    Creating disk image (Size: 4062 MB)
    /tmp/ssh_host_dsa_key
    END
    fi
    fi
    return 0
    # If it exists, install the sharing names and/or directory binding support to the install image
    HandleNetBootClientHelper()
    local tempDir="${1}"
    local targetVol="${2}"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    opt="-v"
    fi
    if [ -e  "${tempDir}/bindingNames.plist" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Installing Directory Service binding information"
    fi
    /usr/bin/ditto $opt "${tempDir}/bindingNames.plist" "${targetVol}/etc/bindingNames.plist" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/etc/bindingNames.plist"
    /bin/chmod 644 "${targetVol}/etc/bindingNames.plist"
    fi
    if [ -e  "${tempDir}/sharingNames.plist" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Installing Sharing Names support"
    fi
    /usr/bin/ditto $opt "${tempDir}/sharingNames.plist" "${targetVol}/etc/sharingNames.plist" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/etc/sharingNames.plist"
    /bin/chmod 644 "${targetVol}/etc/sharingNames.plist"
    fi
    if [ -e  "${tempDir}/NetBootClientHelper" ]; then
    /usr/bin/ditto $opt "${tempDir}/NetBootClientHelper" "${targetVol}/usr/sbin/NetBootClientHelper" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/usr/sbin/NetBootClientHelper"
    /bin/chmod 555 "${targetVol}/usr/sbin/NetBootClientHelper"
    /usr/bin/ditto $opt "${tempDir}/com.apple.NetBootClientHelper.plist" "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist" || return 1
    /usr/sbin/chown root:wheel "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist"
    /bin/chmod 644 "${targetVol}/System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist"
    # finally, make sure it isn't disabled...
    /usr/libex
    # update progress information
    echo "${progressPrefix}_creatingImage_"
    if [ -e "${installSource}/BaseSystem.dmg" ]; then
    size=$2
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
    echo "Creating disk image (Size: $size MB)"
    fi
    /usr/bin/hdiutil create "$destPath/$dmgTarget" -megabytes $size -volname "${dmgVolName}" -uid 0 -gid 80 -mode 1775 -layout "SPUD" -fs "$destVolFSType" -stretch 500g -ov -puppetstrings || errExit
    echo "${progressPrefix}_copyingSource_"
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ] ; then
    echo "Attaching disk image"
    fi
    /usr/bin/hdiutil attach "${destPath}/${dmgTarget}.dmg" -owners on -nobrowse -noautoopen -mountpoint "${mountPoint}" -quiet || errExit
    # Copy source Volume base system to
    /usr/bin/ditto $debug_opt "${installSource}" "${mountPoint}" || errExit
    else
    echo "This does not appear to be a Mac OS X Install DVD."
    errExit
    fi
    # If adding any additional packages or scripts
    if [ -e "${1}/OSInstall.collection" ]; then
    /usr/bin/ditto $debug_opt "${1}/OSInstall.collection" "${mountPoint}/Packages/OSInstall.collection" || errExit
    /usr/sbin/chown root:wheel "${mountPoint}/Packages/OSInstall.collection"
    # If adding any additional packages
    if [ -e "${1}/additionalPackages.txt" ]; then
    CopyPackagesWithDestinationsFromFile "${1}/additionalPackages.txt" || errExit
    fi
    # If adding any scripts
    if [ -e "${1}/additionalScripts.txt" ]; then
    InstallScriptsFromFile "${1}" "${1}/additionalScripts.txt" "${mountPoint}/Packages" || errExit
    fi
    fi
    # If it exists, install the partition data onto the install image
    ProcessAutoPartition "${1}" || errExit
    # If it exists, install minstallconfig.xml (AutoInstall data) onto the install image
    ProcessMinInstall "${1}" || errExit
    # update progress information
    echo "${progressPrefix}_buildingBooter_"
    # Copy kernel and boot loader
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Preparing the kernel and boot loader for the boot image"
    fi
    # make sure this doesn't exist
    if [ -e "${destPath}/i386" ]; then
    /bin/rm -rf "${destPath}/i386"
    fi
    /bin/mkdir -p $debug_opt "${destPath}/i386/x86_64" || errExit
    # copy these directly off the install media
    /usr/bin/ditto $debug_opt "${installSource}/boot.efi" "${destPath}/i386/booter" || errExit
    /usr/bin/chflags nohidden "${destPath}/i386/booter"
    # Grab the relevant portion of the com.apple.Boot.plist
    kernelFlags=`/usr/libexec/PlistBuddy -c "print :'Kernel Flags'" "${installSource}/Library/Preferences/SystemConfiguration/com.apple.Boot.plist"`
    /usr/libexec/PlistBuddy -c "add :'Kernel Flags' string ${kernelFlags}" "${destPath}/i386/com.apple.Boot.plist" > /dev/null 2>&1
    /usr/bin/ditto $debug_opt "${installSource}/System/Library/CoreServices/PlatformSupport.plist" "${destPath}/i386/PlatformSupport.plist" || errExit
    # extract the kernel & kernelcache for the boot shell
    /usr/bin/lipo -extract i386 "${mountPoint}/kernelcache" -output "${destPath}/i386/kernelcache" || errExit
    /usr/bin/lipo -extract x86_64 "${mountPoint}/kernelcache" -output "${destPath}/i386/x86_64/kernelcache" || errExit
    # Apply choice changes, if any
    if [ -e "${1}/MacOSXInstaller.choiceChanges" ]; then
    echo "Copy over package choice selection."
    /usr/bin/ditto $debug_opt "${1}/MacOSXInstaller.choiceChanges" "${mountPoint}/Packages/Extras/MacOSXInstaller.choiceChanges"
    fi
    # update progress information
    echo "${progressPrefix}_finishingUp_"
    # perform the final cleanup
    PostFlightDestination "${1}" "$destPath" || errExit
    rrExit
    # Apply choice changes, if any
    if [ -e "${1}/MacOSXInstaller.choiceChanges" ]; then
    echo "Copy over package choice selection."
    /usr/bin/ditto $debug_opt "${1}/MacOSXInstaller.choiceChanges" "${mountPoint}/Packages/Extras/MacOSXInstaller.choiceChanges"
    fi
    # update progress information
    echo "${progressPrefix}_finishingUp_"
    # perform the final cleanup
    PostFlightDestination "${1}" "$destPath" || errExit
    tDestination "${1}" "$destPath" || errExit
    errExit
    Vol/private/tmp" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Cleaning out /private/tmp on $1"
    fi
    /bin/rm -r $opt "$srcVol/private/tmp/*"
    fi
    if [ -d "$srcVol/private/var/tmp" ]; then
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Cleaning out /private/var/tmp on $1"
    fi
    /bin/rm -r $opt "$srcVol/private/var/tmp/*"
    fi
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    echo "Cleaning out devices and volumes on $1"
    fi
    if [ -d "$srcVol/Volumes" ]; then
    /bin/rm -r $opt "$srcVol/Volumes/*"
    fi
    if [ -d "$srcVol/dev" ]; then
    /bin/rm $opt "$srcVol/dev/*"
    fi
    if [ -d "$srcVol/private/var/run" ]; then
    /bin/rm -r $opt "$srcVol/private/var/run/*"
    fi
    # Copy kernel and build the kext cache on the boot image
    PrepareKernelAndKextCache()
    local srcDir="$1"
    local destDir="$2"
    local opt=""
    if [ "${scriptsDebugKey}" == "VERBOSE" -o "${scriptsDebugKey}" == "DEBUG" ]; then
    Stopping image creation.
    Terminating script!
    Image creation failed.

  • "Content generation error. Failed to Export the PDF file"

    Building a multi-folio in InDesign 6 Folio Builder V30. Received "Content generation error. Failed to Export the PDF file" on several of the spreads. I have tried reducing the original pdf files sizes, but that did not help.
    Any suggestions on other possible causes or way to fix.?
    thanks
    Christopher Huber
    MMN

    I'm very new to DPS so I hope the following description makes some kind of sense.
    My magazine is in the process of doing trial runs for an iPad edition. I'm setting some templates up for us to work off so the process from magazine to iPad will run a lot smoother month to month.
    So far I've set up some dummy stock pages in an InDesign CS6 document, currently 15 pages long.
    All images are linked and all fonts have paragraph styles applied to them.
    I'm at the stage I want to check the document on my iPad to test run font sizes and their legibility.
    We have successfully been able to export the document as a jpg file but we really need the PDF format. When attempting this we get the above message.
    Sonia.

  • Mac OS X 10.6.8, receiving error message "Failed to check for updates. The operation couldn't be completed. Operation not permitted." How to fix?

    When I try to update my software, I'm receiving the error message "Failed to check for updates. The operation couldn't be completed. Operation not permitted."
    I'm using Safari 4.0.3. Yes, I know this is an old version of Safari - I can't update it, or any other software on my MacBook. Should I just wait for the Lion OS, or is there any kind of fix a non-technical Mac user like me can attempt without screwing up her laptop?
    I've tried clearing my cache and resetting Safari already - doesn't help. I've also tried to update after disabling my (Norton) antivirus software, thinking that might be interfering. None of these help.
    I don't know if it's a related problem, but also I can't download .pdf files from the internet, although I used to be able to.

    You should use the NortonAV uninstaller to uninstall it. Disabling the dreadful thing in the past hasn't always been sufficient for it to cease creating system havoc. The Mac NortonAV version has a long and well-earned reputation for doing truly seriously nasty things to OS X. Shame on Comcast for inflicting NortonAV on its Mac customers. It's not a matter of if NortonAV will mess up OS X but when and how badly. I can't help but wondering if some setting in your Norton AV has decided that NortonAV, rather than you, will be making executive decisions about what you are allowed to install on your computer and is keeping that fact a secret.
    After you are done uninstalling Norton use the finder to search for any Norton files that the uninstaller might have missed. Add the option to search for invisible files.
    After you have removed all the Norton bits and pieces restart in safe mode by holding down the shift key right after the startup chime. Keep holding down the shift key until you see the Apple logo and spinning gear. Safe mode does some maintenance tasks which means a much longer than normal startup time. Use Disk Utility to repair permission
    If your Mac works normally in safe mode restart. If things still aren't fixed you might want to give another shot at reinstalling Snow Leopard from the install DVD and applying the Mac OS X 10.6.8 Update Combo before taking your Mac to the Apple Store.
    If you feel the need to run AV software on your Mac use ClamXav in manual mode. It's donationware and doesn't seem to cause the litany of weird problems that are associated with other AV software.

  • I had my hard drive cleaned and cannot install cs6 master collection from disk.  I am getting error message failed to initialize.  please download adobe advisor support.  I have a pc and am using windows 8

    I had my hard drive cleaned and cannot install cs6 master collection from disk.  I am getting error message failed to initialize.  please download adobe advisor support.  I am using a pc and have windows 8.  Please help.

    start at the top and work your way down applying applicable fixes until your problem is resolved.
    if cc (win):  https://helpx.adobe.com/creative-cloud/kb/creative-cloud-desktop-application-failed.html
    if, your error is:
    "Installer failed to initialize. File not found." or "Installer failed to initialize. This could be due to missing files."
    first, rename OOBE Folder to OOBE.old.
    to find OOBE:
    64 bit win OS: Program Files x86\Common Files\Adobe\OOBE
    32 bit win OS: Program Files \Common Files\Adobe\OOBE
    mac os: HD>library>application support>adobe>caps
    mac os: USER>library>application support>adobe>OOB
    if that fails or isn't the exact error you see, uninstall, clean (http://www.adobe.com/support/contact/cscleanertool.html) and reinstall.
    if you're using a dvd to install:
    copy the disc contents to a desktop directory and install from that directory.
    if you're using a mac:
    1. Try to Create a new user account in Mac with Administrator Priviledges.
    2. Login to the New user, Navigate to Mac HD> Application> Utilities> Adobe Installer folder, Locate products like Adobe Reader, Adobe Flash, Adobe Air and un-install them
    3. Navigate to User Library> Application Support> Adobe and move Adobe to Trash.
    4. Navigate to Mac HD> Library> Application Support> Adobe and move Adobe to Trash.
    5. Start the installation again.
    if everything applicable above fails, check your installation logs:
    http://helpx.adobe.com/photoshop-elements/kb/troubleshoot-install-using-logs-elements.html

  • Adobe Standard 9.5.2 after update I get "Insufficient data for an image" error

    After updating to Acrobat Standard and Readre 9.5.2, some (but not all) of my pdf files are now opening with the error "Insufficient data for an image." The files open, but they are fuzzy, pixelated and are missing the bates stamp I applied earlier (using a utility from LexisNexis Casemap). I can open the files fine on another computer with Acrobat Standard 9.5.1.
    How can I uninstall the 9.5.2, or get it to work again?

    Windows 7 64-bit with Samsung SSD on an i5 Lenovo laptop. Yes, I have both Acrobat Standard and Reader 9.5.2 on the machine. Both give the same error when opening the attached file.
    -Dan-
    [email protected]
    Date: Thu, 16 Aug 2012 23:06:52 -0600
    From: [email protected]
    To: [email protected]
    Subject: Adobe Standard 9.5.2 after update I get "Insufficient data for an image" error
        Re: Adobe Standard 9.5.2 after update I get "Insufficient data for an image" error
        created by vamalik in Acrobat Installation & Update Issues - View the full discussion
    Hi osieko,Can you share across any such sample pdf file? Also, what OS are you working upon?You have both Acrobat Standard 9.5.2 and Reader 9.5.2 installed on your machine. Right? One option that you can try is to repair your Acrobat/Reader from Programs in Control Panel and see if that resolves the issue.Otherwise kindly attach a screenshot of the error you are receiving along with any sample pdf file.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4627764#4627764
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4627764#4627764. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Acrobat Installation & Update Issues by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Adobe Reader 9.1 - Fatal Error : Acrobat failed to connect a DDE server

    Hi Everyone,
    I have some users telling me that when they try to open a pdf attachment in Outlook 2007. Nothing happens. The system just sits there as if you did not click on the attachment. If you wait long enought a popup box from adobe reader comes up and says:
    Fatal Error
    Acrobat failed to connect a DDE server.
    All the PDFs are very simple, just simple scanned images or converted over from a document into a PDF.
    I've tried repairing the install and still had no luck - same behaviour. The only way the pdf opens is if we go into task manager and close the AcroRd32.exe process or logoff and log back in.
    If it helps, the most recent system change was the upgrade to IE7 and a new anti-virus software.
    Thanks,
    KEvin

    No solution I am afraid but same problem, running full version of AVG and problem hit immediately after Adobe Reader 9.1 upgrade.  Pretty darn sure problem is in the upgrade but the relevant Restore Point was overwritten before I figured it out.  Any advice welcome.

  • Content generation error. Failed to open the InDesign file.

    Hey all -
    In importing an article to a folio, I just received this error:
    "Content generation error.
    Failed to open the InDesign file. Please confirm the file can be opened in InDesign."
    The file is open right now in InDesign. I can close it and reopen it with no errors.
    I've tried resaving the article to a new file. No help.
    I tried creating a new folio and importing the article there. No help.
    All links are good. It's a simple file with images, a scrolling pane, and some buttons that link to other articles.
    Anyone else run into this problem? Any solutions?
    Thanks!

    Im getting this error also....?
    Want to avoid inporting each artical on at a time. Need to import multiple articals at once.
    Thanks.

  • ERROR: OPatch failed as verification of the patch failed.

    I installed OID by following these instructions( http://www.oracle.com/technology/pub/articles/chan-oid.html), db version created is 10.1.0.5 , but every time i apply CPU patch i receive error
    here is opatch lsinventory results
    Installed Patch List:
    =====================
    1) Patch 9119261 applied on Mon Feb 15 16:17:37 CST 2010
    Unique Patch ID: 12031038
    Error during opatch apply
    OPatch encounters the following issues during Make:
    There were problems running make commands. The errors encounted were:
    Error for command: cd /oracle/product/oid10g//rdbms/lib
    /usr/ccs/bin/make -f ins_rdbms.mk client_sharedlib ORACLE_HOME="/oracle/product/oid10g" 2>/oracle/product/oid10g/.patch_storage/9119261/make_local.stderr
    I ran this command manually and it did'n gave any error
    /usr/ccs/bin/make -f ins_rdbms.mk client_sharedlib ORACLE_HOME="/oracle/product/oid10g" 2>/oracle/product/oid10g/.patch_storage/9119261/make_local.stderr
    Comparing "/oracle/4dba/9119261/files/lib/liboraolap10.a/xsoqhelp.o" and "/oracle/product/oid10g/.patch_storage/verify/lib/liboraolap10.a/xsoqhelp.o"
    Comparing "/oracle/4dba/9119261/files/lib/liboraolap10.a/xsoqftbl.o" and "/oracle/product/oid10g/.patch_storage/verify/lib/liboraolap10.a/xsoqftbl.o"
    There are 2 issues copying files to Oracle Home.
    FILE PROBLEM: some files are not patched.
    OPATCH_JAVA_ERROR: Patch was not successfully applied.
    Verification of the patch failed.
    ERROR: OPatch failed as verification of the patch failed.
    Edited by: user12001353 on Feb 15, 2010 2:31 PM
    Edited by: user12001353 on Feb 15, 2010 2:37 PM

    Why are you applying Database Patches to Oracle Application Server?
    What is telling you to do this?

  • 2 error messages - failed to install extention 2.1 and output module 2.1

    I just tried to update my Encore CS4 from the Master Suite. I have two error messages " failed to install extention Mgr. CS4 2.1 and failed to install output module update 2.1
    Encore will load a new project and save but I can't do anything else like add files before it crashes.  Any help please. - Art

    This might not apply with En CS4, but there were some issues on install, and on updates in Photoshop. It seems that MS had a bum MSI (Installer) version, and it caused a lot of PS installs and updates to fail. Do not recall any specific error messages. The cure there was to download and install the revised MSI module from the MS site. I would imagine that any MSI module would be heavily Windows version-specific. Take that as a warning to check any very carefully, before downloading and installing. MS is pretty good at having a ReadMe with installation instructions for each such download. It almost always contains the exact versions of Windows, that the file is for. Please read any installation instructions carefully.
    This might be worth a look. I do not have a link to the exact page, but a search of the MS site should yield something. I'd search for "MSI," to start.
    I just do not recall any issues with En and either installation (on proper systems with updated OS's) or with any updates.
    Good luck, and please report your success.
    Hunt

Maybe you are looking for

  • How to remove blank pages

    Dear all, How can i remove blank pages in combind pdf in one short, if you have any idea or suggestion for remove blank pages in Acrobat. We need without blank pages counting for final page count purpose. We tried to remove blank pages option in acro

  • Songs are in playlist but won't sync because cannot be found

    I had an Ipod 4 for 3 years and didn't had any problems.  But since I've got my Ipod 5, I have problems with syncing my music.  The music folder hasn't change and my libraries either.  When I sinc, Itunes telles me that about half of my songs "could

  • Multiple Dimension Builds using MAXL

    We currently use ESSCMND to perform multiple dimension builds and data loads. We have been using the "INCBUILDDIM" in Escmnd to update the outline with multiple files without restructuring until the last file. Is there an equivalent command for MAXL

  • Dvt:hierarchyViewer FeaturesOff option in 11.1.1.3

    Hi, I am using Jdeveloper 11.1.1.3 .I saw in oracle Rich Client demo that dvt:hierarchyViewer component is having FeaturesOff option(to off some features) and also i saw in this link http://download.oracle.com/docs/cd/E16162_01/apirefs.1112/e17490/ta

  • Pulling Table data with a BAPI

    Hi: Looking for BAPI to pull data from Tables in the back end.