Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907688 - net-fs/nfs-utils-2.6.3: ships with broken udev rules
Summary: net-fs/nfs-utils-2.6.3: ships with broken udev rules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-06-02 08:20 UTC by Michał Ziąbkowski
Modified: 2023-06-03 00:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
udev rules fix (nfs-utils-2.6.3-fix-udev-rules.patch,1.37 KB, patch)
2023-06-02 08:25 UTC, Michał Ziąbkowski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Ziąbkowski 2023-06-02 08:20:26 UTC
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
Comment 1 Michał Ziąbkowski 2023-06-02 08:25:00 UTC
Created attachment 863038 [details, diff]
udev rules fix

This quick patch fixes the sysctl path in the udev rules.
Comment 2 Larry the Git Cow gentoo-dev 2023-06-03 00:47:16 UTC
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(+)