mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
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
|
||||
fi
|
||||
|
||||
if [[ ! -f "$KERNEL_IMAGE" ]]; then
|
||||
echo "Kernel image argument ${KERNEL_IMAGE} not a file" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for f in "${PLUGINS[@]}"; do
|
||||
if [[ -x $f ]]; then
|
||||
[ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && \
|
||||
|
Loading…
Reference in New Issue
Block a user