Comment # 24 on bug 1200710 from
(In reply to Neil Brown from comment #18)
> Sorry about this.  I hadn't imagined the modprobe.d file being installed
> somewhere that sysctl didn't exist.
> One option might be to blacklist the file from the initramfs.
> However it is probably easier to make the scriptlet safe.
> 
>  install sunrpc /sbin/modprobe .... && { /sbin/sysctl .... ; exit 0 ; }
> 
> seems to work.  I'll submit an update.

Thanks Neil, I tried your patch
(http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=5e60e38aa4ba251ef66610514be5f45c41519e0f)
and it works for me (at least there is no modprobe failure, I don't have a NFS
test setup), but as a minor nitpick it still causes a log entry because stderr
is not redirected to /dev/null:

> Jul 04 08:13:17 localhost dracut-pre-udev[322]: sh: line 1: /sbin/sysctl: No such file or director

How about something like:

install sunrpc /sbin/modprobe ... && { /sbin/sysctl ... 2>/dev/null ; exit 0 ;
}


You are receiving this mail because: