Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Check for mkisofs and hdiutils for Linux/Darwin #79

Closed
wants to merge 2 commits into from

2 participants

@hughdavenport

Linux requires mkisofs, and Darwin requires hdiutils
This patch adds a check for these utils

@hughdavenport hughdavenport Check for mkisofs and hdiutils for Linux/Darwin
Linux requires mkisofs, and Darwin requires hdiutils
This patch adds a check for these utils
91fe385
@hughdavenport

Actually, on debian, mkisofs is now genisoimage, uses same options.

@hughdavenport hughdavenport Use genisoimage if mkisofs is not available
mkisofs isn't available on Debian, genisoimage should
be used instead
93eac65
@xdissent xdissent closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 9, 2012
  1. @hughdavenport

    Check for mkisofs and hdiutils for Linux/Darwin

    hughdavenport authored
    Linux requires mkisofs, and Darwin requires hdiutils
    This patch adds a check for these utils
  2. @hughdavenport

    Use genisoimage if mkisofs is not available

    hughdavenport authored
    mkisofs isn't available on Debian, genisoimage should
    be used instead
This page is out of date. Refresh to see the latest.
Showing with 17 additions and 1 deletion.
  1. +17 −1 ievms.sh
View
18 ievms.sh
@@ -87,6 +87,18 @@ check_unrar() {
hash unrar 2>&- || install_unrar
}
+check_hdiutil() {
+ hash hdiutil 2>&- || fail "Darwin support requires hdiutil"
+}
+
+check_mkisofs() {
+ MKISOFS="mkisofs"
+ hash mkisofs 2>&- || {
+ hash genisoimage 2>&- || fail "Linux support requires mkisofs/genisoimage (sudo apt-get install for Ubuntu/Debian)"
+ MKISOFS="genisoimage"
+ }
+}
+
build_ievm() {
case $1 in
6)
@@ -216,7 +228,7 @@ build_and_attach_drivers() {
case $kernel in
Darwin) hdiutil makehybrid "${ievms_home}/drivers" -o "${ievms_home}/drivers.iso" ;;
- Linux) mkisofs -o "${ievms_home}/drivers.iso" "${ievms_home}/drivers" ;;
+ Linux) "${MKISOFS}" -o "${ievms_home}/drivers.iso" "${ievms_home}/drivers" ;;
esac
fi
@@ -227,6 +239,10 @@ check_system
create_home
check_virtualbox
check_unrar
+case $kernel in
+ Darwin) check_hdiutil ;;
+ Linux) check_mkisofs ;;
+esac
all_versions="6 7 8 9"
for ver in ${IEVMS_VERSIONS:-$all_versions}
Something went wrong with that request. Please try again.