hdiutil: create failed - error -5341
Hi,
I have this error on 2 Macosx Mavericks machines:
hdiutil: create failed - error -5341
This happens when I create an image larger than 100MB. Here the srcfolder is 120MB:
$ hdiutil create -srcfolder myapp.app myapp.dmg
.................................................................
hdiutil: create failed - error -5341
The solution is to specify the size on the command line
valodm:~ jedi$ hdiutil create -size 130m -srcfolder myapp.app myapp.dmg
.......................................................................
created: myapp.dmg
This is disturbing because this bug breaks the munkiimport tool. When trying to import the folder in Munki, I can't specify the size of the sourcefolder, so the tool fails with the error above. The workaround is to create the dmg with the command line, and then import the dmg.
I didn't have this problem on Mountain Lion.
iMac, OS X Mavericks (10.9)