hdiutil attach behaviour changed with Lion (original) (raw)
David Katleman david.katleman at oracle.com
Wed Nov 9 13:52:50 PST 2011
- Previous message: hg: macosx-port/macosx-port/jdk: Tests from Apple: more in Graphics, Graphics/Primitives
- Next message: hdiutil attach behaviour changed with Lion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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: hg: macosx-port/macosx-port/jdk: Tests from Apple: more in Graphics, Graphics/Primitives
- Next message: hdiutil attach behaviour changed with Lion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]