From 93bed33f0d3d8f4461fa753d6ca84b13c11b9851 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Sat, 14 Mar 2015 14:43:12 -0400 Subject: give hints of what to do when failing to find isoinfo --- di-maker | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'di-maker') 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 -- cgit v1.2.3