From: Zbigniew Jędrzejewski-Szmek Date: Sat, 2 Jul 2022 12:44:01 +0000 (+0200) Subject: kernel-install: return 0 for unknown verbs in plugins X-Git-Tag: v252-rc1~671^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=852f98d6aae691574a933691b34133f35958b0d8;p=thirdparty%2Fsystemd.git 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.) --- diff --git a/src/kernel-install/50-depmod.install b/src/kernel-install/50-depmod.install index fdb7545dc92..b43333762bc 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 a640ea42ca8..96e24194c40 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