Skip to content

Commit

Permalink
contrib: dracut: remove getargbool polyfill
Browse files Browse the repository at this point in the history
It was originally released in dracut 008 in February 2011;
we can probably drop it now

Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes openzfs#13291
  • Loading branch information
nabijaczleweli authored and andrewc12 committed Sep 23, 2022
1 parent f0f41ea commit 2390e71
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions contrib/dracut/90zfs/zfs-lib.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@
# shellcheck disable=SC2034

command -v getarg >/dev/null || . /lib/dracut-lib.sh || . /usr/lib/dracut/modules.d/99base/dracut-lib.sh
command -v getargbool >/dev/null || {
# Compatibility with older Dracut versions.
# With apologies to the Dracut developers.
getargbool() {
_default="$1"; shift
! _b=$(getarg "$@") && [ -z "$_b" ] && _b="$_default"
if [ -n "$_b" ]; then
[ "$_b" = "0" ] && return 1
[ "$_b" = "no" ] && return 1
[ "$_b" = "off" ] && return 1
fi
return 0
}
}

TAB=" "

Expand Down

0 comments on commit 2390e71

Please sign in to comment.