mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-06-16 02:35:58 +00:00
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>
This commit is contained in:
committed by
Harald Hoyer
parent
5666ea6fca
commit
d82d87dac1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user