OSX packaging: fix disk-image "Resource busy"
see http://lists.apple.com/archives/darwin-dev/2008/Sep/msg00030.html
This commit is contained in:
parent
3e6eaa0656
commit
23622f4fba
@ -646,7 +646,7 @@ trap "rm -rf $MNTPATH $TMPDMG ${TMPDMG}.dmg $ICNSTMP" EXIT
|
|||||||
hdiutil create -megabytes $DMGMEGABYTES "$TMPDMG"
|
hdiutil create -megabytes $DMGMEGABYTES "$TMPDMG"
|
||||||
DiskDevice=$(hdid -nomount "$TMPDMG" | grep Apple_HFS | cut -f 1 -d ' ')
|
DiskDevice=$(hdid -nomount "$TMPDMG" | grep Apple_HFS | cut -f 1 -d ' ')
|
||||||
newfs_hfs -v "${VOLNAME}" "${DiskDevice}"
|
newfs_hfs -v "${VOLNAME}" "${DiskDevice}"
|
||||||
mount -t hfs "${DiskDevice}" "${MNTPATH}"
|
mount -t hfs -o nobrowse "${DiskDevice}" "${MNTPATH}"
|
||||||
|
|
||||||
cp -r ${PRODUCT_PKG_DIR}/* "${MNTPATH}" || exit
|
cp -r ${PRODUCT_PKG_DIR}/* "${MNTPATH}" || exit
|
||||||
mkdir "${MNTPATH}/.background"
|
mkdir "${MNTPATH}/.background"
|
||||||
|
Loading…
Reference in New Issue
Block a user