[systemd-commits] src/kernel-install
Harald Hoyer
harald at kemper.freedesktop.org
Mon Apr 8 08:00:10 PDT 2013
src/kernel-install/kernel-install | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit d82d87dac1233ddd109437844321645be5bcd4cb
Author: Marc-Antoine Perennou <Marc-Antoine at Perennou.com>
Date: Tue Mar 26 18:11:31 2013 +0100
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 at Perennou.com>
diff --git a/src/kernel-install/kernel-install b/src/kernel-install/kernel-install
index 16c06e0..9f3a523 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
More information about the systemd-commits
mailing list