aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-04-05 02:56:57 +0200
committerBrian Behlendorf <[email protected]>2022-05-06 12:01:48 -0700
commit1184df6b93771c0e5dabb3b526e6cc6dcf805d01 (patch)
tree76350b95c0890e1528abc85a178be785ab5e9cc7
parent1781ee703b1d470f60d73b94ec0d561e76160596 (diff)
contrib: dracut: remove getargbool polyfill
It was originally released in dracut 008 in February 2011; we can probably drop it now Upstream-commit: 47a02e39721bd226646dbdfe3063563a4a5e9749 Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13291
-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 1bd5b27ac..a91b56ba7 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=" "