Unverified Commit e362bab7 authored by Adam C. Stephens's avatar Adam C. Stephens Committed by GitHub
Browse files

zfs: Add /run/wrappers/bin to the script PATH. Some commands (e.g. smart) rely...

zfs: Add /run/wrappers/bin to the script PATH. Some commands (e.g. smart) rely on being able to run sudo (#450151)
parents 557abd90 5dc0eaf3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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"