1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-11 05:17:44 +03:00

kernel-install: fix invocation as installkernel

Fixes #23681.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-07-01 07:55:37 +02:00
parent f63d1b0efa
commit c9e7ab8c29

View File

@ -83,7 +83,7 @@ if [ "${0##*/}" = "installkernel" ]; then
# kernel's install.sh invokes us as
# /sbin/installkernel <version> <vmlinuz> <map> <installation-dir>
# We ignore the last two arguments.
set -- "$1"
set -- "${1:?}" "${2:?}"
else
COMMAND="$1"
[ $# -ge 1 ] && shift