Skip to content

Commit 44230fa

Browse files
kernel-install: don't erase previous errors if a hook returns 77
The manpage says that exiting 77 is the same as exiting 0, then skipping all other hooks, but the behaviour heretofor was to exit 0, skip all, and behave as if all hooks exited 0
1 parent 0ad401d commit 44230fa

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/kernel-install/kernel-install

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ case $COMMAND in
142142
"$f" add "$KERNEL_VERSION" "$ENTRY_DIR_ABS" "$KERNEL_IMAGE" "${INITRD_OPTIONS[@]}"
143143
x=$?
144144
if [[ $x == $SKIP_REMAINING ]]; then
145-
ret=0
146145
break
147146
fi
148147
((ret+=$x))
@@ -158,7 +157,6 @@ case $COMMAND in
158157
"$f" remove "$KERNEL_VERSION" "$ENTRY_DIR_ABS"
159158
x=$?
160159
if [[ $x == $SKIP_REMAINING ]]; then
161-
ret=0
162160
break
163161
fi
164162
((ret+=$x))

0 commit comments

Comments
 (0)