Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428484 - typo in /etc/init.d/nfs for the freebsd-usbin 9.0 package
Summary: typo in /etc/init.d/nfs for the freebsd-usbin 9.0 package
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-29 00:51 UTC by Adeel
Modified: 2012-10-09 10:04 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.