From owner-freebsd-rc@FreeBSD.ORG Sat Nov 23 02:14:15 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 ESMTPS id A5DF5A15 for ; Sat, 23 Nov 2013 02:14:15 +0000 (UTC) Received: from services.syscare.sk (services.syscare.sk [188.40.39.36]) by mx1.freebsd.org (Postfix) with ESMTP id 64C992C55 for ; Sat, 23 Nov 2013 02:14:15 +0000 (UTC) Received: from services.syscare.sk (services.syscare.sk [188.40.39.36]) by services.syscare.sk (Postfix) with ESMTP id 90012410 for ; Sat, 23 Nov 2013 03:06:34 +0100 (CET) X-Virus-Scanned: amavisd-new at rulez.sk Received: from services.syscare.sk ([188.40.39.36]) by services.syscare.sk (services.rulez.sk [188.40.39.36]) (amavisd-new, port 10024) with ESMTP id yjDHiznCQMB0 for ; Sat, 23 Nov 2013 03:06:32 +0100 (CET) Received: from mbp.local (adsl-dyn246.78-99-52.t-com.sk [78.99.52.246]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: danger@rulez.sk) by services.syscare.sk (Postfix) with ESMTPSA id DA23E40A for ; Sat, 23 Nov 2013 03:06:32 +0100 (CET) Message-ID: <52900DA8.3090102@FreeBSD.org> Date: Sat, 23 Nov 2013 03:06:32 +0100 From: Daniel Gerzo Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: freebsd-rc@freebsd.org Subject: devfs and late file systems Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.16 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: Sat, 23 Nov 2013 02:14:15 -0000 Hello, I am using a root on zfs setup with mounts handled by zfs itself (i.e. not legacy mountpoints through fstab). Furthermore I am using service jails to separate things. I am running named in one of such jails. Obviously I need devfs, and therefore I have added this to my fstab: devfs /jails/named/var/named/dev devfs rw,late 0 0 I had to add the late keyword to fstab because without it the system wouldn't boot because fstab mounts (mountcritlocal rc.d script) are handled just before zfs and as such the system wouldn't have such path available yet. Moreover, named needs only a few dev entries and as such I wanted to apply my devfs ruleset, so I added this to rc.conf: devfs_set_rulesets="/jails/named/var/named/dev=devfsrules_named" However, this fails during system startup because when the devfs rc.d script is run, the filesystems marked as late are not mounted yet. There are two obvious options to fix this issue: - we can either move zfs before mountcritlocal which would also fix this issue with having to use the late filesystems in fstab, or - we can move mountlate before devfs. I guess the second option is safer (just add mountlate to REQUIRE: line of devfs) but I may be missing something. Can someone fix this in src, or should I? Thank you! PS: I am not subscribed to this list so please keep me cc:ed -- Kind regards Daniel Gerzo