can't add entries to fsab

Polytropon freebsd at edvax.de
Sun Oct 31 19:20:15 UTC 2010


On Sun, 31 Oct 2010 12:11:31 -0400, Tim Dunphy <bluethundr at gmail.com> wrote:
>  Actually this machine isn't on DHCP, it's statically assigned. My
> basic goal is to get the box to the point where it can resolve DNS
> before it mounts the contents of /etc/fstab...

In case the interface is already up at mount time, you can
maybe use the /etc/hosts mechanisms to assign hostnames to
the IPs you're refering to in /etc/fstab, so you can use
hostnames or aliases there which will then automatically
be resolved.



> do you have any suggestions on how best to achieve this goal?

You can write your own "NFS mount wrapper" and place it into
/usr/local/etc/rc.d; use a template from /etc/rc.d and check
the keywords for REQUIRE that you'll need (references to
interfaces and maybe routing). Then add a _enable="YES" for
your script in /etc/rc.conf and it will be started by the
system when the requirements (indicated by keywords) are
met. There is no need to exactly define this as a point in
time in a given order.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list