diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-09-28 06:35:49 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-09-28 06:36:38 +0200 |
commit | c561c78063c951dbf0d7a176c74d51312c3dfaf7 (patch) | |
tree | 62adac610fff2b461c207311a8d9f728ca711aa2 /src/kernel-install | |
parent | kernel-install: do not fail if $layout is not "bls" (diff) | |
download | systemd-c561c78063c951dbf0d7a176c74d51312c3dfaf7.tar.xz systemd-c561c78063c951dbf0d7a176c74d51312c3dfaf7.zip |
kernel-install: do not fail if a plugin exits with 77
Diffstat (limited to 'src/kernel-install')
-rwxr-xr-x | src/kernel-install/kernel-install.in | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/kernel-install/kernel-install.in b/src/kernel-install/kernel-install.in index aa29f20aad..22eb4d2be1 100755 --- a/src/kernel-install/kernel-install.in +++ b/src/kernel-install/kernel-install.in @@ -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 |