dulajshare123 / munki

Automatically exported from code.google.com/p/munki
Other
0 stars 0 forks source link

munkiimport fails to create a dmg file larger than 100MB on Mavericks #273

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
munkiimport fails to create a dmg file larger than 100MB.
I didn't have this problem in Mountain Lion. Now this problem happens since I 
upgraded to Mavericks.

What steps will reproduce the problem?
1. take a 120MB folder myapp.app
2. import it

$ munkiimport myapp.app 
Making disk image containing myapp.app...
hdiutil: create failed - error -5341
Disk image creation failed.
Could not convert myapp.app to a disk image.

The problem comes from the hdiutil command. I tested on 2 Macosx Mavericks 
machines, and it fails if the command is called without the -size parameter:

$ hdiutil create  -srcfolder myapp.app myapp.dmg
.................................................................
hdiutil: create failed - error -5341

$ hdiutil create -size 130m  -srcfolder myapp.app myapp.dmg
.......................................................................
created: myapp.dmg

What version of the Munki tools/InstallOSpkg tools are you using? On what
version of OS X?
Note: I couldn't install Munkitools 0.9.2.1856.0 because Gatekeeper forbids 
installing non-signed packages.

$ pkgutil --pkg-info com.googlecode.munki.core
package-id: com.googlecode.munki.core
version: 0.9.0.1797.0
volume: /
location: 
install-time: 1375960648

$ pkgutil --pkg-info com.googlecode.munki.app
package-id: com.googlecode.munki.app
version: 3.5.2.1803
volume: /
location: 
install-time: 1375960648

$ pkgutil --pkg-info com.googlecode.munki.admin
package-id: com.googlecode.munki.admin
version: 0.9.0.1797.0
volume: /
location: 
install-time: 1375960648

Original issue reported on code.google.com by fuzzych...@gmail.com on 15 Dec 2013 at 10:03

GoogleCodeExporter commented 9 years ago
If this can be replicated, it points to a bug in Maverick's hdiutil, since the 
section in the manual for the "create -srcfolder" parameters says of the 
resulting disk image: "Its size will be that of the source data plus some 
padding for filesystem overhead."

As not being able to install 0.9.2.1856.0; this is trivial to override and you 
should do so. Three ways:
1) Temporarily change Gatekeeper settings in System Preferences
2) Control-click the package and choose Open with Installer
3) Use the command-line: installer -pkg/path/to/munkitools-0.9.2.1856.0.pkg 
-target /

Original comment by gregnea...@mac.com on 15 Dec 2013 at 3:21

GoogleCodeExporter commented 9 years ago
I attempted to replicate this using a 537MB .app, testing both munkiimport and 
hdiutil commands, and received the expected behavior both times. 
Tested under Mavericks 13A2093 and munkitools 0.9.2.1856  
Also worked for 1.58GB iPhoto.app.

Original comment by syur...@hiebing.com on 16 Dec 2013 at 5:53

GoogleCodeExporter commented 9 years ago
Same here. munkitools version 0.9.2.1849, munkiimport just created a 317.6MB 
DMG of Pages 5.0.1. Looks like an issue with hdiutil.

Original comment by t...@synthist.net on 16 Dec 2013 at 6:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Closing as appears not to be a Munki issue.

Original comment by gregnea...@mac.com on 11 Jan 2014 at 4:56

GoogleCodeExporter commented 9 years ago
This might give somebody a clue:
today I tried creating a DMG file in a script. It fails with the same error, 
and the funny thing is that if I type the exact same command directly in my 
terminal, it works:

$ DMG_create.sh myapp.app 
hdiutil create -size 130m -srcfolder myapp.app myapp.dmg
................................................................................
..
hdiutil: create failed - error -5341

$ hdiutil create -size 130m -srcfolder myapp.app myapp.dmg
................................................................................
......
created: myapp.dmg

Original comment by fuzzych...@gmail.com on 12 Jan 2014 at 11:14