LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Allow rc.nfsd to be started without /etc/exports (suggestion for current) (https://www.linuxquestions.org/questions/slackware-14/allow-rc-nfsd-to-be-started-without-etc-exports-suggestion-for-current-4175509887/)

atelszewski 07-02-2014 01:26 PM

Allow rc.nfsd to be started without /etc/exports (suggestion for current)
 
Hi,

In the 14.1 and probably previous versions too, the /etc/rc.d/rc.nfsd will exit immediately if there is no /etc/exports or if /etc/exports has no exports defined.

Suggestion for next release:
Allow the /etc/rc.d/rc.nfsd to start, even if there is no /etc/exports or if there are no exports defined.

Motivation:
I do embedded development and have boards booting over the NFS. For that reason I have my own script, which among other things will export specified directory using exportfs command. Sometimes I need to change the NFS boot directory for different boards and for that reason (e.g. not to edit it all the time and rerun rc.nfsd) I'm not using /etc/exports but my own script. But for the script to work I need the NFS to be up and running, which at the moment I accomplish by adding dummy entry in /etc/exports to allow rc.nfsd to run. I just don't want to reimplement the rc.nfsd in my own script. What do you think?

--
Best regards,
Andrzej Telszewski

perbh 07-03-2014 10:09 PM

The first thing I ever do after a slackware install is to edit the rc.nfsd file by commenting out the test for empty or non-existent /etc/exports, yeah, a slight hassle but no biggie ...

atelszewski 07-04-2014 10:01 AM

Hi,

Perfect, I'm not the only one in the need;)

Quote:

a slight hassle but no biggie ...
Well, if the change does not pose a security risk, I'd prefer to see it merged.
The yield would be one step less to perform after installation;)

--
Best regards,
Andrzej Telszewski


All times are GMT -5. The time now is 12:32 AM.