lol

nfs-utils: set /etc/krb5.keytab as default path for rpc-gssd

Currently the `rpc-gssd.service` has a `ConditionPathExists` clause that can
never be met, because it's looking for stateful data inside `/nix/store`.

`auth-rpcgss-module.service` also only starts if this file exists.

Fixes NixOS/nixpkgs#29509.

authored by

Ruben Maher and committed by
Jörg Thalheim
98a23161 eb2f321e

+7 -1
+6
nixos/modules/tasks/filesystems/nfs.nix
··· 85 85 enable = mkDefault false; 86 86 }; 87 87 88 + systemd.services.auth-rpcgss-module = 89 + { 90 + unitConfig.ConditionPathExists = [ "" "/etc/krb5.keytab" ]; 91 + }; 92 + 88 93 systemd.services.rpc-gssd = 89 94 { restartTriggers = [ nfsConfFile ]; 95 + unitConfig.ConditionPathExists = [ "" "/etc/krb5.keytab" ]; 90 96 }; 91 97 92 98 systemd.services.rpc-statd =
+1 -1
pkgs/os-specific/linux/nfs-utils/default.nix
··· 39 39 sed -i "s,^PATH=.*,PATH=$out/bin:${statdPath}," utils/statd/start-statd 40 40 41 41 configureFlags="--with-start-statd=$out/bin/start-statd $configureFlags" 42 - 42 + 43 43 substituteInPlace systemd/nfs-utils.service \ 44 44 --replace "/bin/true" "${coreutils}/bin/true" 45 45