[nfs-utils] dependency issue with rpc.idmapd systemd unit file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

I would like to report a bug with nfs-utils.

The package provides a file, nfs-idmapd.service, which is a systemd
unit file contains contents below:

[Unit]
Description=NFSv4 ID-name mapping service
Documentation=man:idmapd(8)
DefaultDependencies=no
Requires=rpc_pipefs.target
After=rpc_pipefs.target local-fs.target network-online.target
Wants=network-online.target

BindsTo=nfs-server.service

[Service]
Type=forking
ExecStart=/usr/sbin/rpc.idmapd

This systemd unit declares a strong dependency to another unit,
nfs-server.service, which is for NFSv3, while idmapd is dedicated for
NFSv4.

In case the user wants to set up a NFSv4-only server,
nfs-server.service and rpcbind.service shall be masked, while
nfsv4-server.service should be enabled and started, which renders
nfs-idmapd.service unable to be started.

I would suggest such a patch to have this issue fixed:

--- a/nfs-idmapd.service 2024-10-20 15:17:42.000000000 +0800
+++ b/nfs-idmapd.service 2024-11-17 14:06:18.028380419 +0800
@@ -6,7 +6,7 @@
 After=rpc_pipefs.target local-fs.target network-online.target
 Wants=network-online.target

-BindsTo=nfs-server.service
+BindsTo=nfsv4-server.service

 [Service]
 Type=forking

Best Regards

Jianze




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux