[Bug 205393] mountd rc.d script doen't load nfsd and zfs configs if set in rc.conf.d

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Dec 18 06:19:46 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205393

            Bug ID: 205393
           Summary: mountd rc.d script doen't load nfsd and zfs configs if
                    set in rc.conf.d
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: conf
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: oi4io5me.cesium3 at gmail.com

Created attachment 164338
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=164338&action=edit
simple patch to fix this issue

mountd rc script checks nfs_server_enable and zfs_enable rcvars in it's
mountd_precmd(),
but it doesn't load their configs by using`load_rc_config nfsd'.

So mountd rc script fails to modify it's own rc_flags if nfsd and/or zfs
configs are set in rc.conf.d.

This problem exists in head and all supported branches.

Attached patch fixes this issue by simply adding load_rc_config nfsd and zfs
lines,
though I'm not sure this is the best way to fix this issues.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list