AFP548

InstaDMG on 10.8.2, BaseImageCache and Recovery HD

I'm using InstaDMG (latest version - r455) on a system I have recently upgraded from 10.8.0 to 10.8.2 (12C60) and I'm using a freshly downloaded InstallESD.dmg which is 10.8.2 12C54 What is happening is that the base image is getting built with the OS inside the disk image on Macintosh HD, but it's also adding in the Recovery HD partition to the dmg. Then, later on in the process when InstaDMG goes to mount the dmg, what's happening is that it's passing the flag for -mountpoint to hdiutil, but what hdiutil is doing is mounting the LAST mountable partition inside the dmg and ignoring the others, so it's ignoring Macintosh HD and mounting Recovery HD instead. This then means that none of the other software can be installed by InstaDMG into the disk image as it's not a proper system that's mounted. I don't have the skills to fix this myself, from what I can see though you need to pass the -mountroot command to hdiutil instead of -mountpoint and this will mount all of the partitions inside the disk image, however they'll be mounted in subfolders inside the mountpoint given (eg /tmp/whatever/Macintosh HD and /tmp/whatever/Recovery HD) instead of having the root of the filesystem mounted on the mountpoint given. I've scanned the manpages for hdiutil and I can't see an easy way to mount just one filesystem inside a dmg. I'm running my build with InstaUp2Date, but the problem persists even when I run instadmg.bash or perform the steps manually.
Exit mobile version