From owner-freebsd-rc@FreeBSD.ORG Thu May 27 06:20:35 2010 Return-Path: Delivered-To: rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C54251065679; Thu, 27 May 2010 06:20:35 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 8815B8FC0A; Thu, 27 May 2010 06:20:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o4R6FU8l049989; Thu, 27 May 2010 00:15:33 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 27 May 2010 00:15:34 -0600 (MDT) Message-Id: <20100527.001534.807935107107604070.imp@bsdimp.com> To: sem@semmy.ru From: "M. Warner Losh" In-Reply-To: <4BFE04E5.1010708@semmy.ru> References: <20100526.103232.21010533749123106.imp@bsdimp.com> <4BFD4E95.3080407@elischer.org> <4BFE04E5.1010708@semmy.ru> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: rc@FreeBSD.org, net@FreeBSD.org, julian@elischer.org, sem@FreeBSD.org Subject: Re: move setfib(1) X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 May 2010 06:20:35 -0000 In message: <4BFE04E5.1010708@semmy.ru> Sergey Matveychuk writes: : 26.05.2010 20:38, Julian Elischer wrote: : > On 5/26/10 9:32 AM, M. Warner Losh wrote: : >> In message:<4BFD158D.7020301@FreeBSD.org> : >> Sergey Matveychuk 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?