hdiutil attach behaviour changed with Lion (original) (raw)
David Katleman david.katleman at oracle.com
Wed Nov 9 14:00:55 PST 2011
- Previous message: hdiutil attach behaviour changed with Lion
- Next message: hg: macosx-port/macosx-port: Added tag jdk7-b217 for changeset 7e0665464c55
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Nothing like replying to your own query...
Adding -quiet shuts it up. Still concerned about config differences between 10.6 and 10.7.
Dave
On 11/9/2011 1:52 PM, David Katleman wrote:
Hi Mike!
In our .dmg generation script (from Shura), we call hdiutil hdiutil attach ./JDK7.dmg -readwrite -noverify -noidme -mountpoint $mount In 10.6, the above command merrily ran. Our new 10.7 (Lion) build system gives us this message There may be a problem with this disk image. Are you sure you want to open it? [Opening this disk image may make your computer less secure or cause other problems.] Attach? (Y/N) Is there something in Lion or macosx itself I need to configure to avoid this question being asked? Seems to generate a .dmg fine if I answer "Y", but I'd like to avoid the question. Thanks Dave Portion of script to generate .dmg echo "Generating jdk-7-ea-macosx-${BUILDNUMBER}.dmg" rm -rf ./JDK7-MACOSX-PORT.dmg cp -r ./JDK7-template.dmg ./JDK7.dmg mount=/tmp/JDK7IMAGE rm -rf $mount mkdir -p $mount echo "Calling hdiutil..." hdiutil attach ./JDK7.dmg -readwrite -noverify -noidme -mountpoint $mount jdk=./JDK mkdir -p "$mount/JDK 1.7.0 Developer Preview.jdk/Contents" cp -R jdk/∗"jdk/* "jdk/∗"mount/JDK 1.7.0 Developer Preview.jdk/Contents" hdiutil detach $mount -quiet -force dmg=./jdk-7-ea-macosx-${BUILDNUMBER}.dmg rm -f $dmg hdiutil convert ./JDK7.dmg -format UDZO -imagekey zlib-level=9 -o $dmg
- Previous message: hdiutil attach behaviour changed with Lion
- Next message: hg: macosx-port/macosx-port: Added tag jdk7-b217 for changeset 7e0665464c55
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]