diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-07-02 14:41:41 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-07-12 09:24:43 +0200 |
commit | 00e6278cac0cfca4f744caf76d6d67bd18f6c7b5 (patch) | |
tree | f9cce4552c538052a82fc8f05fe1e2dbeadc7c62 | |
parent | test-kernel-install: add a simple test that kernel-install copies the files (diff) | |
download | systemd-00e6278cac0cfca4f744caf76d6d67bd18f6c7b5.tar.xz systemd-00e6278cac0cfca4f744caf76d6d67bd18f6c7b5.zip |
kernel-install: raise fuss if plugins are called without the expected parameters
Diffstat (limited to '')
-rwxr-xr-x | src/kernel-install/50-depmod.install | 4 | ||||
-rwxr-xr-x | src/kernel-install/90-loaderentry.install | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/kernel-install/50-depmod.install b/src/kernel-install/50-depmod.install index 67319afe61..fdb7545dc9 100755 --- a/src/kernel-install/50-depmod.install +++ b/src/kernel-install/50-depmod.install @@ -18,8 +18,8 @@ # You should have received a copy of the GNU Lesser General Public License # along with systemd; If not, see <https://www.gnu.org/licenses/>. -COMMAND="$1" -KERNEL_VERSION="$2" +COMMAND="${1:?}" +KERNEL_VERSION="${2:?}" case "$COMMAND" in add) diff --git a/src/kernel-install/90-loaderentry.install b/src/kernel-install/90-loaderentry.install index d6b90a7b1d..a640ea42ca 100755 --- a/src/kernel-install/90-loaderentry.install +++ b/src/kernel-install/90-loaderentry.install @@ -18,9 +18,9 @@ # You should have received a copy of the GNU Lesser General Public License # along with systemd; If not, see <https://www.gnu.org/licenses/>. -COMMAND="$1" -KERNEL_VERSION="$2" -ENTRY_DIR_ABS="$3" +COMMAND="${1:?}" +KERNEL_VERSION="${2:?}" +ENTRY_DIR_ABS="${3:?}" KERNEL_IMAGE="$4" INITRD_OPTIONS_SHIFT=4 |