aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2015-03-14 14:43:12 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2015-03-14 14:43:12 -0400
commit93bed33f0d3d8f4461fa753d6ca84b13c11b9851 (patch)
tree66c795f3f46cfbb683ce7742f62dd83ec712cdf6
parent2366a0e696dea04bdfef58b937d78d2f8b96ea9e (diff)
downloadkvm-manager-93bed33f0d3d8f4461fa753d6ca84b13c11b9851.tar.gz
kvm-manager-93bed33f0d3d8f4461fa753d6ca84b13c11b9851.tar.bz2
give hints of what to do when failing to find isoinfo
-rwxr-xr-xdi-maker4
1 files changed, 4 insertions, 0 deletions
diff --git a/di-maker b/di-maker
index 86b34b2..6fa862f 100755
--- a/di-maker
+++ b/di-maker
@@ -76,6 +76,10 @@ esac
if ! [ -e "$output" ] ; then
( cd "$WORKDIR" && wget "$BASEPATH"/{$KERNEL,$INITRAMFS} )
else
+ if ! which isoinfo > /dev/null; then
+ printf "Could not find isoinfo.\nYou probably need to install the genisoimage\npackage if you want to work with an existing .iso like '%s'.\n" "$output" >&2
+ exit 1
+ fi
isoinfo -R -i "$output" -x "/$KERNEL" > "$WORKDIR/$KERNEL"
isoinfo -R -i "$output" -x "/$INITRAMFS" > "$WORKDIR/$INITRAMFS"
fi