zfs: fix PATH for zpool.d scripts
This commit is contained in:
parent
3065d00d74
commit
17f76a906e
@ -7,6 +7,7 @@
|
|||||||
, libtirpc
|
, libtirpc
|
||||||
, nfs-utils
|
, nfs-utils
|
||||||
, gawk, gnugrep, gnused, systemd
|
, gawk, gnugrep, gnused, systemd
|
||||||
|
, smartmontools, sysstat, sudo
|
||||||
|
|
||||||
# Kernel dependencies
|
# Kernel dependencies
|
||||||
, kernel ? null
|
, kernel ? null
|
||||||
@ -131,6 +132,13 @@ let
|
|||||||
(cd $out/share/bash-completion/completions; ln -s zfs zpool)
|
(cd $out/share/bash-completion/completions; ln -s zfs zpool)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
path="PATH=${makeBinPath [ coreutils gawk gnused gnugrep utillinux smartmontools sysstat sudo ]}"
|
||||||
|
for i in $out/libexec/zfs/zpool.d/*; do
|
||||||
|
sed -i "2i$path" $i
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
outputs = [ "out" ] ++ optionals buildUser [ "lib" "dev" ];
|
outputs = [ "out" ] ++ optionals buildUser [ "lib" "dev" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
Reference in New Issue
Block a user