zfs: Add /run/wrappers/bin to the script PATH. Some commands (e.g. smart) rely on being able to run sudo (#450151)

This commit is contained in:
Adam C. Stephens
2025-11-08 17:12:06 +00:00
committed by GitHub
+5
View File
@@ -152,6 +152,11 @@ let
]
}"
# substitute path that ZFS will pass on when calling external helper scripts (/etc/zfs/zpool.d/*, zfs_prepare_disk)
substituteInPlace ./lib/libzfs/libzfs_util.c \
--replace-fail \"PATH=/bin:/sbin:/usr/bin:/usr/sbin\" \
\"PATH=/run/wrappers/bin:/run/current-system/sw/bin:/run/current-system/sw/sbin\"
substituteInPlace ./config/zfs-build.m4 \
--replace-fail "bashcompletiondir=/etc/bash_completion.d" \
"bashcompletiondir=$out/share/bash-completion/completions"