From 74ff1dd52bb2f6f79b73898d50c26009ef25176c Mon Sep 17 00:00:00 2001 From: Felix Zielcke Date: Sat, 21 Nov 2009 17:40:55 +0100 Subject: [PATCH] 2009-11-21 Felix Zielcke * util/grub-mkrescue.in: Print an error and usage if output option has not been given. --- ChangeLog | 5 +++++ util/grub-mkrescue.in | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 868fd5c13..2e6ab2bdc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-11-21 Felix Zielcke + + * util/grub-mkrescue.in: Print an error and usage if output option + has not been given. + 2009-11-21 Felix Zielcke Patch from Loïc Minier . diff --git a/util/grub-mkrescue.in b/util/grub-mkrescue.in index 6f7d3338c..51639ccb1 100644 --- a/util/grub-mkrescue.in +++ b/util/grub-mkrescue.in @@ -42,7 +42,7 @@ Make GRUB rescue image. -h, --help print this message and exit -v, --version print the version information and exit --modules=MODULES pre-load specified modules MODULES - --output=FILE save output in FILE + --output=FILE save output in FILE [required] $0 generates a bootable rescue image with specified source files or directories. @@ -79,6 +79,12 @@ for option in "$@"; do esac done +if [ "x${output_image}" = x ] ; then + echo "output file must be given" >&2 + usage + exit 1 +fi + iso9660_dir=`mktemp -d` mkdir -p ${iso9660_dir}/boot/grub -- 2.47.2