summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-Antoine Perennou <Marc-Antoine@Perennou.com>2013-03-26 18:11:31 +0100
committerHarald Hoyer <harald@redhat.com>2013-04-08 17:00:04 +0200
commitd82d87dac1233ddd109437844321645be5bcd4cb (patch)
tree34bf3b9ee11eb2481e5b8eb68d1cd6c33c5d4800
parent5666ea6fcaaf1e829de07625b7c185949b23fecd (diff)
kernel-install: don't make unused parameter mandatory
We only use the image name in the case we're adding a kernel Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
-rw-r--r--src/kernel-install/kernel-install6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/kernel-install/kernel-install b/src/kernel-install/kernel-install
index 16c06e0842..9f3a523218 100644
--- a/src/kernel-install/kernel-install
+++ b/src/kernel-install/kernel-install
@@ -62,7 +62,7 @@ usage()
} >&2
}
-if ! ( [[ $COMMAND ]] && [[ $KERNEL_VERSION ]] && [[ $KERNEL_IMAGE ]] ); then
+if ! ( [[ $COMMAND ]] && [[ $KERNEL_VERSION ]] ); then
usage
exit 1
fi
@@ -101,6 +101,10 @@ readarray -t PLUGINS < <(
case "$COMMAND" in
add)
+ if [[ -z $KERNEL_IMAGE ]]; then
+ usage
+ exit 1
+ fi
mkdir -p "$BOOT_DIR_ABS" || exit 1
for f in "${PLUGINS[@]}"; do