After upgrading to nfs-utils-2.6.3 I noticed some new warnings in my system log: (udev-worker)[15339]: sunrpc: Process '/sbin/sysctl -q --pattern ^sunrpc --system' failed with exit code 1. (udev-worker)[15341]: lockd: Process '/sbin/sysctl -q --pattern ^fs.nfs.n[sl]m --system' failed with exit code 1. (udev-worker)[15339]: nfs: Process '/sbin/sysctl -q --pattern ^fs.nfs --system' failed with exit code 1. (udev-worker)[15341]: nfsv4: Process '/sbin/sysctl -q --pattern ^fs.nfs.(nfs_callback_tcpport|idmap_cache_timeout) --system' failed with exit code 1. On closer inspection, the new version ships some new rules, stored at /usr/lib/udev/rules.d/60-nfs.rules. Said rules have a hardcoded path to /sbin/sysctl. On my system this path doesn't exist. The valid one is /usr/sbin/sysctl. Reproducible: Always Steps to Reproduce: 1. Upgrade to net-fs/nfs-utils-2.6.3 2. Reboot Actual Results: Warnings are displayed when loading NFS modules Expected Results: No warnings are displayed
Created attachment 863038 [details, diff] udev rules fix This quick patch fixes the sysctl path in the udev rules.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a8943891a7da4d1b2acd0eafd68918fff72c1e4 commit 4a8943891a7da4d1b2acd0eafd68918fff72c1e4 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2023-06-03 00:44:59 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2023-06-03 00:44:59 +0000 net-fs/nfs-utils: fix path to sysctl in udev rules Closes: https://bugs.gentoo.org/907688 Signed-off-by: Mike Gilbert <floppym@gentoo.org> net-fs/nfs-utils/files/nfs-utils-udev-sysctl.patch | 32 ++++++++++++++++++++++ ...s-2.6.3-r1.ebuild => nfs-utils-2.6.3-r2.ebuild} | 1 + 2 files changed, 33 insertions(+)