diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2015-03-14 14:43:12 -0400 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2015-03-14 14:43:12 -0400 |
commit | 93bed33f0d3d8f4461fa753d6ca84b13c11b9851 (patch) | |
tree | 66c795f3f46cfbb683ce7742f62dd83ec712cdf6 | |
parent | 2366a0e696dea04bdfef58b937d78d2f8b96ea9e (diff) | |
download | kvm-manager-93bed33f0d3d8f4461fa753d6ca84b13c11b9851.tar.gz kvm-manager-93bed33f0d3d8f4461fa753d6ca84b13c11b9851.tar.bz2 |
give hints of what to do when failing to find isoinfo
-rwxr-xr-x | di-maker | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |