summaryrefslogtreecommitdiff
path: root/src/kernel-install
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-07-02 14:44:01 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-07-12 09:24:43 +0200
commit852f98d6aae691574a933691b34133f35958b0d8 (patch)
tree29cbb4c61d29b4f0b5afacac5fce29f84349f790 /src/kernel-install
parent00e6278cac0cfca4f744caf76d6d67bd18f6c7b5 (diff)
downloadsystemd-852f98d6aae691574a933691b34133f35958b0d8.tar.gz
kernel-install: return 0 for unknown verbs in plugins
In practice this makes little difference, because kernel-install will only call the plugins for 'add' or 'remove', and if we were to add a new verb to kernel-install, we'd just change the plugins at the same time. But our plugins serve as documentation for external plugins too, and there it's better to silently ignore unknown verbs so that we can add new verbs in the future. (50-depomod.install was already like that.)
Diffstat (limited to 'src/kernel-install')
-rwxr-xr-xsrc/kernel-install/50-depmod.install1
-rwxr-xr-xsrc/kernel-install/90-loaderentry.install2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel-install/50-depmod.install b/src/kernel-install/50-depmod.install
index fdb7545dc9..b43333762b 100755
--- a/src/kernel-install/50-depmod.install
+++ b/src/kernel-install/50-depmod.install
@@ -44,4 +44,5 @@ case "$COMMAND" in
;;
*)
exit 0
+ ;;
esac
diff --git a/src/kernel-install/90-loaderentry.install b/src/kernel-install/90-loaderentry.install
index a640ea42ca..96e24194c4 100755
--- a/src/kernel-install/90-loaderentry.install
+++ b/src/kernel-install/90-loaderentry.install
@@ -48,7 +48,7 @@ case "$COMMAND" in
add)
;;
*)
- exit 1
+ exit 0
;;
esac