summaryrefslogtreecommitdiffstats
path: root/src/kernel-install
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-04-02 14:54:42 +0200
committerLennart Poettering <lennart@poettering.net>2019-04-03 11:25:40 +0200
commit51be9a8c41e1d6e6a15bf90c60318611edbaab14 (patch)
tree301d253046a4f52baecf16e16e05cbbfcdb63546 /src/kernel-install
parentdocs: update release steps for meson (diff)
downloadsystemd-51be9a8c41e1d6e6a15bf90c60318611edbaab14.tar.xz
systemd-51be9a8c41e1d6e6a15bf90c60318611edbaab14.zip
kernel-install: add a check that the vmlinuz arg is sane
Diffstat (limited to 'src/kernel-install')
-rw-r--r--src/kernel-install/kernel-install5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kernel-install/kernel-install b/src/kernel-install/kernel-install
index 610959ba9f..e7f2beb570 100644
--- a/src/kernel-install/kernel-install
+++ b/src/kernel-install/kernel-install
@@ -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 ] && \