Skip to content

Commit

Permalink
feat(lsinitrd): notify user on missing compressor
Browse files Browse the repository at this point in the history
Provide a notice to user if the required compressor package is
missing.  This rather than failing silently.
  • Loading branch information
FGrose authored and LaszloGombos committed Mar 30, 2023
1 parent a0d14d3 commit 1300a93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lsinitrd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,11 @@ case $bin in
;;
esac

type "${CAT%% *}" > /dev/null 2>&1 || {
echo "Need '${CAT%% *}' to unpack the initramfs."
exit 1
}

skipcpio() {
$SKIP "$@" | $ORIG_CAT
}
Expand Down

0 comments on commit 1300a93

Please sign in to comment.