- This topic has 5 replies, 3 voices, and was last updated 15 years, 11 months ago by
larkost.
-
AuthorPosts
-
April 24, 2009 at 8:55 am #376054
Cameron Kay
ParticipantHi, 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.
April 28, 2009 at 11:43 pm #376086knowmad
ParticipantCan 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.April 29, 2009 at 12:34 am #376087Cameron Kay
ParticipantHere’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”
May 1, 2009 at 8:59 pm #376103knowmad
Participantat 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 seeinghere 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-E932C8374F97Finished 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]May 1, 2009 at 9:24 pm #376104knowmad
ParticipantOK 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.
May 2, 2009 at 2:36 am #376105larkost
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?
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed