kernel-install: do not fail if a plugin exits with 77

This commit is contained in:
Yu Watanabe
2022-09-28 13:36:38 +09:00
parent 46f347ada3
commit c561c78063
+4 -5
View File
@@ -349,9 +349,8 @@ case "$COMMAND" in
for f in $KERNEL_INSTALL_PLUGINS; do
log_verbose "+$f add $KERNEL_VERSION $ENTRY_DIR_ABS" "$@"
"$f" add "$KERNEL_VERSION" "$ENTRY_DIR_ABS" "$@"
err=$?
err=0
"$f" add "$KERNEL_VERSION" "$ENTRY_DIR_ABS" "$@" || err=$?
[ $err -eq $skip_remaining ] && break
[ $err -ne 0 ] && exit $err
done
@@ -360,8 +359,8 @@ case "$COMMAND" in
remove)
for f in $KERNEL_INSTALL_PLUGINS; do
log_verbose "+$f remove $KERNEL_VERSION $ENTRY_DIR_ABS"
"$f" remove "$KERNEL_VERSION" "$ENTRY_DIR_ABS"
err=$?
err=0
"$f" remove "$KERNEL_VERSION" "$ENTRY_DIR_ABS" || err=$?
[ $err -eq $skip_remaining ] && break
[ $err -ne 0 ] && exit $err
done