Home Forums Software InstaDMG Can’t get image caching to work

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #376054
    Cameron Kay
    Participant

    Hi, I can’t seem to get image caching to work. I’m using a InstallerChoices.xml file and InstaDMG 1.4b4 is creating a disk image in Caches/BaseImageCache folder called “.dmg” which means something’s going wrong as looking at the script the cached disk image name should have the checksum of the disk image in it. How do I fix this so I don’t have to wait for the script to reinstall the OS ever time I run it.

    #376086
    knowmad
    Participant

    Can you give us more details? A log maybe?
    Do your images work minus the cache?
    Have you changed your script at all?
    Caching should just work… its only supposed to NOT work if you specifically comment it out.

    #376087
    Cameron Kay
    Participant

    Here’s links to the log files

    http://staff.cofa.unsw.edu.au/~cameronkay/instadmg.log

    http://staff.cofa.unsw.edu.au/~cameronkay/instadmg.pkg.log

    The only 2 lines of the script I’ve changed are:

    ASR_FILESYSTEM_NAME=”System”

    CURRENT_OS_INSTALL_MOUNT=”/Volumes/Mac OS X Install DVD”

    #376103
    knowmad
    Participant

    at what line numbers did you change those?
    (stupid question but ….)

    If I understand correctly you edited line 70 which originally read (including line 69 here)
    [code]# This string is the root filesystem name for the ASR image.
    ASR_FILESYSTEM_NAME=”InstaDMG”[/code]

    and then line 140 which read:
    [code]CURRENT_OS_INSTALL_MOUNT=”” # the location where the primary installer disk is mounted[/code]

    I understand why you hardcoded line 70… why line 140?
    and no, I am not certain this has anything to do with the issue your seeing

    here are the pertinent lines from a succesful NON-cache (from cd into a cache file) build for comparison:
    [code]
    13:07:08 ######InstaDMG build initiated######
    13:07:08 ######Mounting Mac OS X installer image######
    Mounting a support disk from ./InstallerFiles/BaseOS/./InstallerFiles/BaseOS/Applications Install Disc.dmg
    Mounting the main OS Installer Disk from: ./InstallerFiles/BaseOS/Mac OS X Install DVD.dmg at: /tmp/instaDMGMount.GVPRSq
    Mac OS X installer image mounted
    13:10:17 ######Creating intermediary disk image######
    created: /tmp/instaDMGTemp.2Kq1ke.sparseimage
    Image mounted at /dev/disk7
    Running on Intel Platform: Setting format to GPT
    Started erase on disk disk7
    Creating partition map
    Formatting disk7s2 as Mac OS Extended (Journaled) with name 1B7CB9D1-C77D-44E3-A610-E932C8374F97

    Finished erase on disk disk7
    Finished partitioning on disk disk7
    /dev/disk7 GUID_partition_scheme
    /dev/disk7s1 EFI
    /dev/disk7s2 Apple_HFS /tmp/instaDMGMount.vV1Qcy
    Intimediary image creation complete
    13:10:49 ######Beginning Installation from /tmp/instaDMGMount.GVPRSq######
    I’m running on Leopard or later. Checking for InstallerChoices.xml file
    InstallerChoices.xml file found. Applying Choices
    installer: Package name is Mac OS X
    installer: choices changes file ‘./InstallerFiles/BaseOS/InstallerChoices.xml’ applied [/code]

    and then

    [code] installer: The install was successful.
    Base OS installed
    Compacting and saving cached image to: ./Caches/BaseImageCache/3D76E122:1574b2a41d626bd7eaf9d8d518a22521ec3ac29d.dmg
    “disk7” unmounted.
    “disk7” ejected.
    Remounting the image with a shadow file (/tmp/instaDMGTemp.2Kq1ke.sparseimage)
    /dev/disk7 GUID_partition_scheme
    /dev/disk7s1 EFI
    /dev/disk7s2 Apple_HFS /tmp/instaDMGMount.vV1Qcy
    13:43:27 ######Beginning Update Installs from ./InstallerFiles/BaseUpdates######
    13:43:27 ######Beginning Update Installs from ./InstallerFiles/CustomPKG######
    13:43:27 ######Correcting some generic installer errors######
    [/code]

    #376104
    knowmad
    Participant

    OK the more I think on it the more I realize that what I sent in the last post was mostly useless.
    I know you have tried a dozen things, but… try a vanilla setup…
    Ie, grab a fresh copy of instadmg, unpack it in a folder marked ‘test’
    Make no changes to it other than putting the image of the installer dvd into the base folder.
    Then run it.
    If that gets you a working cache, start with that. Although you could use that to figure out what you did to the other setup, my guess is that its not worth it.
    Starting from this and making changes one at a time, with a super basic (I know, its still 45 minutes each round) build in between will tell you what you did wrong OR you can forget about tracking it down and work with this build, adding the rest of your build train/stream/list/whatever to it minus the changes to the script directly.

    i know, of limited help. Sorry, Im swamped, nothing jumps at me so you get … this.

    #376105
    larkost
    Participant

    [QUOTE][u]Quote by: Cameron+Kay[/u][p]
    The only 2 lines of the script I’ve changed are:

    ASR_FILESYSTEM_NAME=”System”
    CURRENT_OS_INSTALL_MOUNT=”/Volumes/Mac OS X Install DVD”

    [/p][/QUOTE]

    Rather than trying to mess around with the working internals, just make sure your image has the right name: either “Mac OS X Install Disc 1.dmg” or “Mac OS X Install DVD.dmg”. The image caching will only identify it if it is one of those two names. And rather than hard-coding the filesystem name, why not use the ‘-n’ option?

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Comments are closed