Skip to content

Commit

Permalink
fix(DRACUT_TESTBIN): fail if test binary is not found
Browse files Browse the repository at this point in the history
Fail and report when test binary is not found as it is needed to
detect library paths.
  • Loading branch information
FGrose committed Jun 12, 2023
1 parent 3f8f115 commit ae86ca8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dracut-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ export srcmods

DRACUT_LDD=${DRACUT_LDD:-ldd}
DRACUT_TESTBIN=${DRACUT_TESTBIN:-/bin/sh}
type "$DRACUT_TESTBIN" > /dev/null || {
dfatal "DRACUT_TESTBIN '$DRACUT_TESTBIN' not found."
exit 1
}
DRACUT_LDCONFIG=${DRACUT_LDCONFIG:-ldconfig}

# shellcheck source=./dracut-functions.sh
Expand Down

0 comments on commit ae86ca8

Please sign in to comment.