From owner-freebsd-rc@FreeBSD.ORG Fri Sep 20 17:26:17 2013 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B96C8C6C for ; Fri, 20 Sep 2013 17:26:17 +0000 (UTC) (envelope-from eirnym@gmail.com) Received: from mail-pa0-x22a.google.com (mail-pa0-x22a.google.com [IPv6:2607:f8b0:400e:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9727A2506 for ; Fri, 20 Sep 2013 17:26:17 +0000 (UTC) Received: by mail-pa0-f42.google.com with SMTP id lj1so970261pab.29 for ; Fri, 20 Sep 2013 10:26:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=Qm3DVUzJ3xnikfGecc+UfBBWyfU+5Iv4bsSYNcrXqsQ=; b=E49Wf0xeDUyjaYprk5610l6GqhgxcJOFsMjdkJFqhCswSsKzoicsTksTuLh8cFGCFG kmnnQF16hxIOYM79hVW0+pr1no2MURacNJQmPg4Y7yLs187VQhIFmDhi+s0DUD7rioI0 k6dLgOkjIUgx4mJjMSDaqjC7pKMR8L35AC/XtqbOV9aZWPhpObOGW0bny1576AwLfbNB ubXe/x2ma1AX8ch7EzGv5FvOvSRXx/q0aSzJAi6NVuIB4oxIF3sN/Rv8+ye0X8IRfbcX KCe3RpQaqDSH59QKR34cZ3YnxHXNE1/dqDwIGyL3rQP2i1ivagpB2CSNbbUA6bcOMV+L 3v6g== X-Received: by 10.68.50.106 with SMTP id b10mr9350031pbo.152.1379697977192; Fri, 20 Sep 2013 10:26:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.241.69 with HTTP; Fri, 20 Sep 2013 10:25:57 -0700 (PDT) From: Eir Nym Date: Fri, 20 Sep 2013 21:25:57 +0400 Message-ID: Subject: rc.conf reloading while /etc/ is one of mounted fs To: freebsd-rc@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 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, 20 Sep 2013 17:26:17 -0000 I had problem with /etc/rc.conf and /etc/rc.conf.local won't be reloaded if /etc/ mounted on boot. There's way to detect it more correctly than I does? I have following ZFS mounts: server/common/distfiles /usr/ports/distfiles server/common/home /usr/home server/common/local.etc /usr/local/etc server/common/obj /usr/obj server/common/tmp /tmp server/common/var /var server/common/www /usr/local/www server/os/r255342 / server/os/r255342/boot /boot server/os/r255342/etc /etc server/os/r255342/local /usr/local server/os/r255342/ports /usr/ports server/os/r255342/src /usr/src the reason I split root partition is ability to make it read-only So the only way to load correct /etc/rc.conf and /etc/rc.local is replace /etc/rc on root partition with following contents: #!/bin/sh /sbin/zfs mount `zfs list|awk ' $5=="/etc" {print $1}' ` exec /etc/rc $@ -- Eir Nym