summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-04-05 02:56:57 +0200
committerBrian Behlendorf <[email protected]>2022-04-20 16:45:54 -0700
commit47a02e39721bd226646dbdfe3063563a4a5e9749 (patch)
tree6ac1342843d5eec23ee1d8321d576ed91d481c3b /contrib
parente3fc330d6cc9445821fa44c699b7e66e2f6f209d (diff)
contrib: dracut: remove getargbool polyfill
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 #13291
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/dracut/90zfs/zfs-lib.sh.in14
1 files changed, 0 insertions, 14 deletions
diff --git a/contrib/dracut/90zfs/zfs-lib.sh.in b/contrib/dracut/90zfs/zfs-lib.sh.in
index a8903a5e1..e44673c2d 100755
--- a/contrib/dracut/90zfs/zfs-lib.sh.in
+++ b/contrib/dracut/90zfs/zfs-lib.sh.in
@@ -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=" "