Merge pull request #29581 from eqyiel/fix-rpc-gssd
nixos/nfs: allow setting the path to krb5.keytab
This commit is contained in:
commit
743848bb46
@ -85,8 +85,14 @@ in
|
|||||||
enable = mkDefault false;
|
enable = mkDefault false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.auth-rpcgss-module =
|
||||||
|
{
|
||||||
|
unitConfig.ConditionPathExists = [ "" "/etc/krb5.keytab" ];
|
||||||
|
};
|
||||||
|
|
||||||
systemd.services.rpc-gssd =
|
systemd.services.rpc-gssd =
|
||||||
{ restartTriggers = [ nfsConfFile ];
|
{ restartTriggers = [ nfsConfFile ];
|
||||||
|
unitConfig.ConditionPathExists = [ "" "/etc/krb5.keytab" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.rpc-statd =
|
systemd.services.rpc-statd =
|
||||||
|
@ -39,7 +39,7 @@ in stdenv.mkDerivation rec {
|
|||||||
sed -i "s,^PATH=.*,PATH=$out/bin:${statdPath}," utils/statd/start-statd
|
sed -i "s,^PATH=.*,PATH=$out/bin:${statdPath}," utils/statd/start-statd
|
||||||
|
|
||||||
configureFlags="--with-start-statd=$out/bin/start-statd $configureFlags"
|
configureFlags="--with-start-statd=$out/bin/start-statd $configureFlags"
|
||||||
|
|
||||||
substituteInPlace systemd/nfs-utils.service \
|
substituteInPlace systemd/nfs-utils.service \
|
||||||
--replace "/bin/true" "${coreutils}/bin/true"
|
--replace "/bin/true" "${coreutils}/bin/true"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user