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 <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13291
  • Loading branch information
nabijaczleweli authored and behlendorf committed Apr 20, 2022
1 parent e3fc330 commit 47a02e3
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 47a02e3

Please sign in to comment.