From 23622f4fba03be848ffeb80a98d340d555da7a74 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 2 Feb 2015 18:46:26 +0100 Subject: [PATCH] OSX packaging: fix disk-image "Resource busy" see http://lists.apple.com/archives/darwin-dev/2008/Sep/msg00030.html --- tools/osx_packaging/osx_build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build index fffd70c10a..f3f235b120 100755 --- a/tools/osx_packaging/osx_build +++ b/tools/osx_packaging/osx_build @@ -646,7 +646,7 @@ trap "rm -rf $MNTPATH $TMPDMG ${TMPDMG}.dmg $ICNSTMP" EXIT hdiutil create -megabytes $DMGMEGABYTES "$TMPDMG" DiskDevice=$(hdid -nomount "$TMPDMG" | grep Apple_HFS | cut -f 1 -d ' ') newfs_hfs -v "${VOLNAME}" "${DiskDevice}" -mount -t hfs "${DiskDevice}" "${MNTPATH}" +mount -t hfs -o nobrowse "${DiskDevice}" "${MNTPATH}" cp -r ${PRODUCT_PKG_DIR}/* "${MNTPATH}" || exit mkdir "${MNTPATH}/.background"