kernel-install: add a check that the vmlinuz arg is sane
This commit is contained in:
parent
f5a44d42af
commit
51be9a8c41
|
@ -125,6 +125,11 @@ case $COMMAND in
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ! -f "$KERNEL_IMAGE" ]]; then
|
||||||
|
echo "Kernel image argument ${KERNEL_IMAGE} not a file" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
for f in "${PLUGINS[@]}"; do
|
for f in "${PLUGINS[@]}"; do
|
||||||
if [[ -x $f ]]; then
|
if [[ -x $f ]]; then
|
||||||
[ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && \
|
[ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && \
|
||||||
|
|
Loading…
Reference in a new issue