Merge pull request #103307 from grahamc/zfs-scripts
zfs: extend zpool scripts with :$PATH, remove sudo
This commit is contained in:
commit
f9121be82e
@ -161,10 +161,11 @@ let
|
|||||||
(cd $out/share/bash-completion/completions; ln -s zfs zpool)
|
(cd $out/share/bash-completion/completions; ln -s zfs zpool)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = let
|
||||||
path="PATH=${makeBinPath [ coreutils gawk gnused gnugrep utillinux smartmontools sysstat sudo ]}"
|
path = "PATH=${makeBinPath [ coreutils gawk gnused gnugrep utillinux smartmontools sysstat ]}:$PATH";
|
||||||
|
in ''
|
||||||
for i in $out/libexec/zfs/zpool.d/*; do
|
for i in $out/libexec/zfs/zpool.d/*; do
|
||||||
sed -i "2i$path" $i
|
sed -i '2i${path}' $i
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user