Skip to content

Instantly share code, notes, and snippets.

@antifuchs
Created December 20, 2014 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antifuchs/a0487d4813a09a22e24d to your computer and use it in GitHub Desktop.
Save antifuchs/a0487d4813a09a22e24d to your computer and use it in GitHub Desktop.
$ make visitor-nbi
rm -rf output/osx-visitor.nbi
#dir=$(hdiutil attach -readonly output/osx-visitor-10.10.1-14B25.dmg | awk '/Apple_HFS/ {print }' | cut -f 3 -d ' ') ;
dir='/Volumes/Macintosh HD 2'; \
echo "$dir" ; \
sudo /System/Library/CoreServices/Applications/System\ Image\ Utility.app/Contents/MacOS/imagetool --plist `pwd`/netboot-plists/visitor.plist --source "$dir" ; \
hdiutil detach "$dir"
/Volumes/Macintosh HD 2
Create NetRestore Image
Initiating NetRestore from installed volume.
Volume Macintosh HD on disk2s2 unmounted
MESSAGE:Preparing imaging engine…
MESSAGE:Reading whole disk (Apple_HFS : 0)…
MESSAGE: (CRC32 $573444EA: whole disk (Apple_HFS : 0))
MESSAGE:Adding resources…
MESSAGE:Elapsed Time: 2m 33.791s
MESSAGE:File size: 9739834433 bytes, Checksum: CRC32 $8036242C
MESSAGE:Sectors processed: 78012560, 26075745 compressed
MESSAGE:Speed: 82.8Mbytes/sec
MESSAGE:Savings: 75.6%
created: /Volumes/Macintosh HD/Users/asf/src/osx-image-creation/output/NetRestore-10-10-visitor_3.nbi/System.dmg
Volume Macintosh HD on disk2s2 mounted
Volume on disk2s3 failed to mount
If the volume is damaged, try the "readOnly" option
Execution of 'makeNetRestoreFromItem.sh' failed. Cleaning up.
Execution of 'asrFromVolume.sh' failed. Cleaning up.
Failed to create image from restore source.
2014-12-20 13:06:45.722 imagetool[17808:110929] Imaging failed. Error: Error Domain=System Image Utility Code=2 "The operation couldn’t be completed. (System Image Utility error 2.)"
"disk2" unmounted.
"disk2" ejected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment