hdiutil instead of Disk Utility to create Base Image, cache
Could someone please point me in the right direction to create the Base Image from Terminal?
I tried a bunch of different flags and haven't ended up with a working .dmg yet. I had thought I'd be able to figure it out with the imageinfo flag, but I can't even remember how I did it right in Disk Utility. Here's the successful image I made via diskutility when analyzed with hdiutil imageinfo:
[code]
Format Description: UDIF read-only
Class Name: CUDIFDiskImage
Checksum Type: CRC32
Size Information:
Compressed Ratio: 1
Total Empty Bytes: 1928338944
Sector Count: 16777216
Total Bytes: 8589934592
CUDIFEncoding-bytes-wasted: 0
Total Non-Empty Bytes: 6661595648
CUDIFEncoding-bytes-in-use: 6661595648
Compressed Bytes: 6661595648
CUDIFEncoding-bytes-total: 6661595648
Checksum Value: $6ED5AF39
Segments:
0: /Volumes/Leftova/instadmg-read-only/InstallerFiles/BaseOS/Mac OS X Install DVD.dmg
Partition Information:
0:
Name: whole disk (Apple_HFS : 0)
Partition Number: 0
Checksum Type: CRC32
Checksum Value: $717A7727
Format: UDRO
Backing Store Information:
URL: file://localhost/Volumes/Leftova/instadmg-read-only/InstallerFiles/BaseOS/Mac%20OS%20X%20Install%20DVD.dmg
Name: Mac OS X Install DVD.dmg
Class Name: CUDIFEncoding
Backing Store Information:
URL: file://localhost/Volumes/Leftova/instadmg-read-only/InstallerFiles/BaseOS/Mac%20OS%20X%20Install%20DVD.dmg
Name: Mac OS X Install DVD.dmg
Class Name: CBSDBackingStore
partitions:
partition-scheme: none
block-size: 512
appendable: true
partitions:
0:
partition-name: whole disk
partition-start: 0
partition-synthesized: true
partition-length: 16777216
partition-hint: Apple_HFS
partition-filesystems:
HFS+:
burnable: true
udif-ordered-chunks: true
Properties:
Encrypted: false
Kernel Compatible: true
Checksummed: true
Software License Agreement: false
Partitioned: false
Compressed: false
Resize limits (per hdiutil resize -limits):
min cur max
13195984 16777216 16777216
[/code]
I'd love to create the cache file in advance as well, if I'm following the script correctly that conversion happens via this command:
[code]
/usr/bin/hdiutil convert -ov -puppetstrings -format UDZO -imagekey zlib-level=6 -o "${ASR_FOLDER}/$ASR_OUPUT_FILE_NAME" "$SHADOW_FILE_LOCATION" | (while read INPUT; do log "$INPUT " detail; done)
[/code]
I'm not sure exactly where I substitute in my baseimage.dmg and point the output.
Any help would be greatly appreciated, please let me know if I'm not asking the right questions or if better documentation than the man page for hdiutil is available. Thanks,
(edited to correct typo)
Allister Banks
POINT
www.pointconsultants.com 646.502.4708 368 Broadway Ste. 303 New York, New York 10013