From owner-freebsd-rc@FreeBSD.ORG Fri May 7 18:50:38 2010 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E8896106566C; Fri, 7 May 2010 18:50:38 +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 A787E8FC13; Fri, 7 May 2010 18:50:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o47Ihsqx048686; Fri, 7 May 2010 12:43:55 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 07 May 2010 12:44:10 -0600 (MDT) Message-Id: <20100507.124410.123339447257066316.imp@bsdimp.com> To: sem@FreeBSD.org From: "M. Warner Losh" In-Reply-To: <4BE44D4E.1080308@FreeBSD.org> References: <201005071710.o47HA3XH078595@freefall.freebsd.org> <4BE44D4E.1080308@FreeBSD.org> 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: freebsd-rc@FreeBSD.org, eugen@grosbein.pp.ru Subject: Re: conf/132483: rc.subr(8) [patch] setfib(1) support for rc.subr 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: Fri, 07 May 2010 18:50:39 -0000 In message: <4BE44D4E.1080308@FreeBSD.org> Sergey Matveychuk writes: : Eugene Grosbein wrote: : > The following reply was made to PR conf/132483; it has been noted by : > GNATS. : > From: Eugene Grosbein : > To: bug-followup@freebsd.org : > Cc: sem@freebsd.org : > Subject: Re: conf/132483: rc.subr(8) [patch] setfib(1) support for : > rc.subr : > Date: Sat, 08 May 2010 00:08:20 +0700 : > I've tested second patch (setfib_for_rc.subr.diff), it works. : > Vote for commit. Without this, there is no way to bind : > a network service running from rcNG-based startup script : > to a non-default FIB. : > The only alternative is ugly way to use /etc/rc.local with : > "setfib N ... forcestart" command that ignores dependencies. : > Please commit. : > : : Unfortunately setfib(1) is in /usr/sbin "which is not guaranteed to be : accessible at boot time, especially not before the network is up." (c) : dougb@ : : So, this patch has a little chance to be committed. Do we still support boot environments where this is actually true?[*] /usr/* isn't available before mountcrit. Given the amount of sed and awk in use, I think this is likely safe. Warner [*] where the root partition that's mounted by the kernel for its root file system doesn't contain /usr and we mount that via the network later.