Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 428484

Summary: typo in /etc/init.d/nfs for the freebsd-usbin 9.0 package
Product: Gentoo/Alt Reporter: Adeel <adeel_n>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---

Description Adeel 2012-07-29 00:51:17 UTC
their is typo in the variable named ${exportsfile} in /etc/init.d/nfs which starts mountd but doesn't actually allow anyone to mount the shares

Additionally, there should be a comment in /etc/conf.d/nfs that to use the ZFS sharenfs property field, the user should add /etc/zfs/exports to the exportsfile variable list, e.g. exportsfile="/etc/zfs/exports /etc/exports"

I also recall noticing that /etc/exports wasn't created by default, and nfs would error out. It wasn't the most obvious error, so having a quick test in the init script would be useful.
Comment 1 Naohiro Aota gentoo-dev 2012-08-09 15:06:22 UTC
(In reply to comment #0)
> their is typo in the variable named ${exportsfile} in /etc/init.d/nfs which
> starts mountd but doesn't actually allow anyone to mount the shares

Fixed.

> Additionally, there should be a comment in /etc/conf.d/nfs that to use the
> ZFS sharenfs property field, the user should add /etc/zfs/exports to the
> exportsfile variable list, e.g. exportsfile="/etc/zfs/exports /etc/exports"

We really need it? "zfs share" should handle it.

> I also recall noticing that /etc/exports wasn't created by default, and nfs
> would error out. It wasn't the most obvious error, so having a quick test in
> the init script would be useful.

$exportsfile can have multiple files and you can even change the variable to other values than "/etc/exports" so the check can cause unexpected failure.