summaryrefslogtreecommitdiff
path: root/src/kernel-install
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-07-02 14:41:41 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-07-12 09:24:43 +0200
commit00e6278cac0cfca4f744caf76d6d67bd18f6c7b5 (patch)
treef9cce4552c538052a82fc8f05fe1e2dbeadc7c62 /src/kernel-install
parentf875e6bc399614401b245751dec04918407e754d (diff)
downloadsystemd-00e6278cac0cfca4f744caf76d6d67bd18f6c7b5.tar.gz
kernel-install: raise fuss if plugins are called without the expected parameters
Diffstat (limited to 'src/kernel-install')
-rwxr-xr-xsrc/kernel-install/50-depmod.install4
-rwxr-xr-xsrc/kernel-install/90-loaderentry.install6
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