I'm trying to create a Mac OS DMG image file on Gentoo - I managed to create the FS using mkfs.hfsplus and just dropping all the contents into the mounted file system, and everything works fine.. the problem is that I'm now trying to add an icon to the DMG, and from my understanding I have to compress it and make it read only (the dmg) as a final seal to make it work with the icon.I've found a way to do this in OS X in the shape of:hdiutil convert $IMAGENAME-temp.dmg -format UDZO \    -imagekey zlib-level=9 -o $IMAGENAME.dmgbut finding it difficult to do on Gentoo, as hdiutil only exists on Mac OS.Any way to achieve this without SSHing to a Mac OS machine?Thanks.
Creating a DMG file on Gentoo
osx;gentoo;disk image