Created
April 4, 2012 13:17
-
-
Save ashee/2301003 to your computer and use it in GitHub Desktop.
Fake mkisofs using hdiutil to appease CloudStack build in osx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Make sure to chmod +x this script and copy it somewhere in your path, ~/bin in my case | |
# CloudStack build (ant build-all) will invoke this script | |
ISO=$4 | |
shift 4 | |
CSTK=$(mktemp -d -t CloudStack.X) | |
for i in $*; do cp "$i" $CSTK; done | |
echo "hdiutil makehybrid -o $ISO.iso -hfs -joliet -iso $CSTK" | |
hdiutil makehybrid -o "$ISO" -hfs -joliet -iso $CSTK | |
rm -fr $CSTK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This one worked for me on OSX with coreos 4.6.3.