Re: move setfib(1)

2010-05-27 Thread M. Warner Losh
In message: 4bfe04e5.1010...@semmy.ru
Sergey Matveychuk s...@semmy.ru writes:
: 26.05.2010 20:38, Julian Elischer wrote:
:  On 5/26/10 9:32 AM, M. Warner Losh wrote:
:  In message:4bfd158d.7020...@freebsd.org
:  Sergey Matveychuks...@freebsd.org writes:
:  : Does is possible to move setfib(1) to /sbin for smooth using it in
:  : rc.d scripts?
: 
:  Can you tell us why you need it so early?
: 
:  We could do it, but eventually everything ends up moving to /sbin or
:  /bin unless we need a good reason.
: 
: 
: I'm thinking about this after Doug's message:
: http://lists.freebsd.org/pipermail/freebsd-rc/2010-May/001954.html

Right, and the only way that /usr/bin isn't going to be available if
the network isn't up will be if you have NFS mounted root, but have a
separate /usr partition.  Otherwise, critmount happens before the
network comes up, and that will ensure that you'll have /usr available
at the point in the boot scripts you want to use it.  Even if you have
/ and /usr separate on NFS partitions, you can specify netfs_types=
in the NFS root's rc.conf and all NFS mounts will mount too very
early.

Since you are proposing this for /etc/rc.d/routing, I think you can
actually use it there and there will be no problem, even for whacked
out NFS setups.

Did I miss something?

Warner

P.S.  On my system at least:

rcorder says:

/etc/rc.d/dumpon
/etc/rc.d/ddb
/etc/rc.d/initrandom
/etc/rc.d/geli
/etc/rc.d/gbde
/etc/rc.d/encswap
/etc/rc.d/ccd
/etc/rc.d/swap1
/etc/rc.d/fsck
/etc/rc.d/root
/etc/rc.d/hostid
/etc/rc.d/mdconfig
/etc/rc.d/mountcritlocal

so these wuold be the only places where you can't use binaries from
/usr, right?
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: move setfib(1)

2010-05-27 Thread M. Warner Losh
In message: 20100527.001534.807935107107604070@bsdimp.com
M. Warner Losh i...@bsdimp.com writes:
: at the point in the boot scripts you want to use it.  Even if you have
: / and /usr separate on NFS partitions, you can specify netfs_types=
: in the NFS root's rc.conf and all NFS mounts will mount too very
: early.

s/will mount too very early/will mount early as well/g

Sorry.

Warner
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


move setfib(1)

2010-05-26 Thread Sergey Matveychuk

Hi!

Does is possible to move setfib(1) to /sbin for smooth using it in rc.d 
scripts?


--
Sem.
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: move setfib(1)

2010-05-26 Thread M. Warner Losh
In message: 4bfd158d.7020...@freebsd.org
Sergey Matveychuk s...@freebsd.org writes:
: Does is possible to move setfib(1) to /sbin for smooth using it in
: rc.d scripts?

It is small enough.  I think that's a good idea.

However, it would only be a problem if we are mounting / and /usr off
NFS as separate partitions, right?

Warner
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: move setfib(1)

2010-05-26 Thread Julian Elischer

On 5/26/10 9:32 AM, M. Warner Losh wrote:

In message:4bfd158d.7020...@freebsd.org
 Sergey Matveychuks...@freebsd.org  writes:
: Does is possible to move setfib(1) to /sbin for smooth using it in
: rc.d scripts?


Can you tell us why you need it so early?

We could do it, but eventually everything ends up moving to /sbin or 
/bin unless we need a good reason.




It is small enough.  I think that's a good idea.

However, it would only be a problem if we are mounting / and /usr off
NFS as separate partitions, right?

Warner
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: move setfib(1)

2010-05-26 Thread Sergey Matveychuk

26.05.2010 20:38, Julian Elischer wrote:

On 5/26/10 9:32 AM, M. Warner Losh wrote:

In message:4bfd158d.7020...@freebsd.org
Sergey Matveychuks...@freebsd.org writes:
: Does is possible to move setfib(1) to /sbin for smooth using it in
: rc.d scripts?


Can you tell us why you need it so early?

We could do it, but eventually everything ends up moving to /sbin or
/bin unless we need a good reason.



I'm thinking about this after Doug's message:
http://lists.freebsd.org/pipermail/freebsd-rc/2010-May/001954.html
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org