From owner-freebsd-rc@FreeBSD.ORG Thu Jan 16 17:35:33 2014 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C70375AB for ; Thu, 16 Jan 2014 17:35:33 +0000 (UTC) Received: from mail-wg0-x22c.google.com (mail-wg0-x22c.google.com [IPv6:2a00:1450:400c:c00::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 61B83137D for ; Thu, 16 Jan 2014 17:35:33 +0000 (UTC) Received: by mail-wg0-f44.google.com with SMTP id l18so3495822wgh.35 for ; Thu, 16 Jan 2014 09:35:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=7/XmssPqV54C05Vu4iHqjor8gOL+N8LYUlChkEnUdUI=; b=UQroV27OkBmkxqW503iU+v3fj93UBSGM6P+PHnQE+LiTXQxNfQZ6SemFFT+RXSFBnw hwSfxtqttuN6uaW19fkRsHa3FPht6yhbJTCce38lF/rMNDYMrDGa+OIoZLi64//cKL5G sJCd04li42Wl9P2gcYHAjXunUAym/t9+qpQVhes5QF6EF0/3QIYdc+aC6onyftD8j8ee mMCn9Aq9im8w/6qR16d05y5w5gqYdfjy3KWJVrDiNfXZunEUpS56TuFKygSkAMSpEvPu RIZyAq32MB88qAwESPAep9PlscWoW1C6K/DQbhg3YkHwZS6zrlSKhlQHcSJY/sGg0fC7 ggiQ== X-Received: by 10.180.97.10 with SMTP id dw10mr5023726wib.25.1389893731842; Thu, 16 Jan 2014 09:35:31 -0800 (PST) Received: from [172.16.0.2] (tx97.net. [85.198.160.156]) by mx.google.com with ESMTPSA id ci4sm6894168wjc.21.2014.01.16.09.35.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 Jan 2014 09:35:30 -0800 (PST) Message-ID: <52D8182B.6030602@gmail.com> Date: Thu, 16 Jan 2014 19:34:35 +0200 From: Vitaly Magerya User-Agent: Thunderbird MIME-Version: 1.0 To: freebsd-rc@freebsd.org Subject: Why does rc.d/tmp require 'mountcritremote'? Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.17 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, 16 Jan 2014 17:35:33 -0000 Hi, folks. In one particular setup I use tmpmfs, but I also have links from /var into /tmp, so I need rc.d/tmp to be executed before rc.d/var (or at least, before rc.d/SERVERS). This however, appears to be impossible: rc.d/tmp requires 'mountcritremote', which then requires 'var' through a series of dependencies. So my question is: why does rc.d/tmp require 'mountcritremote'? Can we change it to 'mountcritlocal' or some such? I've looked into commit logs, and this requirement was introduced in revision 153028 [1]; the commit log says: "Brooks pointed out a case where tmp needs to be run after mountcritremote, so force it the other way instead.". Anyone knows what case is this? For the reference, rc.d/var, which, just like rc.d/tmp, creates an md-backed filesystem, only requires 'mountcritlocal' and 'zfs'. [1] https://svnweb.freebsd.org/base?view=revision&revision=153028