mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
zfs: patch client path used in smb share
fix zfs smb share integration before: # zfs share tank/smb_share cannot share tank/smb_share: smb add share failed now works as intended.
This commit is contained in:
parent
c86cd65e9b
commit
e16e51702b
@ -6,7 +6,7 @@
|
||||
# Userspace dependencies
|
||||
, zlib, libuuid, python3, attr, openssl
|
||||
, libtirpc
|
||||
, nfs-utils
|
||||
, nfs-utils, samba
|
||||
, gawk, gnugrep, gnused, systemd
|
||||
, smartmontools, enableMail ? false
|
||||
, sysstat, pkg-config
|
||||
@ -55,6 +55,7 @@ let
|
||||
# And if it's enabled by default, only change that if we explicitly disable python to remove python from the closure
|
||||
nfs-utils.override (old: { enablePython = old.enablePython or true && enablePython; })
|
||||
}/bin/exportfs"
|
||||
substituteInPlace ./lib/libshare/smb.h --replace "/usr/bin/net" "${samba}/bin/net"
|
||||
substituteInPlace ./config/user-systemd.m4 --replace "/usr/lib/modules-load.d" "$out/etc/modules-load.d"
|
||||
substituteInPlace ./config/zfs-build.m4 --replace "\$sysconfdir/init.d" "$out/etc/init.d" \
|
||||
--replace "/etc/default" "$out/etc/default"
|
||||
|
Loading…
Reference in New Issue
Block a user