VirtualBox

Changeset 57337 in vbox for trunk/src/VBox/Installer/darwin


Ignore:
Timestamp:
Aug 13, 2015 11:04:14 PM (9 years ago)
Author:
vboxsync
Message:

Installer/darwin: Another shot at working around the -5341 problem with hdiutil.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/darwin/Makefile.kmk

    r57248 r57337  
    151151        @# Change the owners.
    152152        sudo chown -R root:admin $(VBOX_PATH_PACK_TMP)/DiskImage
    153         @# Create the image.
    154         sudo hdiutil create -format UDBZ -volname "VirtualBox" -srcfolder "$(VBOX_PATH_PACK_TMP)/DiskImage" "$@"
     153        @# Create the image. We calculate the size our selves, adding 8MB for fudging (it's about 100-120MB atm).
     154        sudo hdiutil create -format UDBZ -volname "VirtualBox" -srcfolder "$(VBOX_PATH_PACK_TMP)/DiskImage" \
     155                -size $(DOLLAR)((`/usr/bin/du -d 0 -k "$(VBOX_PATH_PACK_TMP)/DiskImage/" | /usr/bin/cut -f1` + 8192))k \
     156                "$@"
    155157        @# Change (back) the owner so it can be deleted by the user.
    156158        sudo chown "$(shell whoami)" "$@"
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette