Bug 219566 - net-fs/nfs-utils-1.1.2: rpc.idmapd init script doesn't load sunrpc.ko required for rpc_pipefs
|
Bug#:
219566
|
Product: Gentoo Linux
|
Version: 2007.0
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: minor
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: net-fs@gentoo.org
|
Reported By: Martin.vGagern@gmx.net
|
|
Component: Unspecified
|
|
|
URL:
|
|
Summary: net-fs/nfs-utils-1.1.2: rpc.idmapd init script doesn't load sunrpc.ko required for rpc_pipefs
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2008-04-28 04:00 0000
|
After building nfs4 support as kernel modules, the rpc.idmapd init script
reported an error during startup. The log contained these lines:
[rpc.idmapd] main: open(/var/lib/nfs/rpc_pipefs/nfs): No such file or directory
[/etc/init.d/rpc.idmapd] ERROR: rpc.idmapd failed to start
Looking at the init script, I found that it would mount rpc_pipefs if that file
system was known to the kernel, but try without it being mounted if the
filesystem was unknown. Grepping all modules which are loaded when other nfs
services are up, I found that sunrpc contains the string "rpc_pipefs".
Workaround: Force loading of this module at boot time:
echo 'modules="${modules} sunrpc"' >> /etc/conf.d/modules
Solution: Have the init script of rpc.idmapd automatically modprobe sunrpc,
either directly or via some dependency. Perhaps also print a warning message if
rpc_pipefs could not be mounted.
(In reply to comment #3)
If there are three init scripts, all containing the same code to mount pipefs,
which is always executed unconditionally, you might consider providing a
separate init script just to mount pipefs, and have the other iscripts depend
on that. Would be cleaner in my opinion.
Anyway, thanks for the fix!