Bug 205393 - mountd rc.d script doen't load nfsd and zfs configs if set in rc.conf.d
Summary: mountd rc.d script doen't load nfsd and zfs configs if set in rc.conf.d
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-rc mailing list
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-12-18 06:19 UTC by KIKUCHI Koichiro
Modified: 2015-12-18 16:32 UTC (History)
0 users

See Also:


Attachments
simple patch to fix this issue (272 bytes, patch)
2015-12-18 06:19 UTC, KIKUCHI Koichiro
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description KIKUCHI Koichiro 2015-12-18 06:19:46 UTC
Created attachment 164338 [details]
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.