From owner-freebsd-rc@FreeBSD.ORG Sat Jan 9 21:23:10 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 953841065670 for ; Sat, 9 Jan 2010 21:23:10 +0000 (UTC) (envelope-from pgollucci@p6m7g8.com) Received: from exhub015-1.exch015.msoutlookonline.net (exhub015-1.exch015.msoutlookonline.net [207.5.72.93]) by mx1.freebsd.org (Postfix) with ESMTP id 836C68FC17 for ; Sat, 9 Jan 2010 21:23:10 +0000 (UTC) Received: from philip.hq.rws (174.79.184.239) by smtpx15.msoutlookonline.net (207.5.72.103) with Microsoft SMTP Server (TLS) id 8.2.176.0; Sat, 9 Jan 2010 13:13:06 -0800 Message-ID: <4B48F161.4070602@p6m7g8.com> Date: Sat, 9 Jan 2010 21:13:05 +0000 From: "Philip M. Gollucci" Organization: P6M7G8 Inc. User-Agent: Thunderbird 2.0.0.23 (X11/20091208) MIME-Version: 1.0 To: rc@freebsd.org References: <4B47F1DB.8080800@p6m7g8.com> <4B4829B7.1060700@FreeBSD.org> In-Reply-To: <4B4829B7.1060700@FreeBSD.org> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: [patch] - zfs mount -a *MUST* run before /etc/fstab is processed 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: Sat, 09 Jan 2010 21:23:10 -0000 example - $ zpool create zroot .... $ zfs set mountpoint=legacy zroot [basically follow the wiki for GPTZFS boot] $ zfs create zroot/software $ zfs create -p zroot/jails/x $ zfs set mountpoint=/software zroot/software $ zfs set mountpoint=/jails zroot/jails $ mkdir -p /jails/x/software $ cat /etc/fstab /software /jails/x/software nullfs ro 0 0 reboot boom mountcritlocal bombs b/c neither path is available yet only the root (zroot) is mounted b/c zfs mount -a hasn't been run yet The below patch changes the /etc/rc.d rcorder so that happens in the correct order. I've tested it on 2 machines here successfully. http://people.freebsd.org/~pgollucci/FreeBSD/diffs/zfs.diff Sponsored by: RideCharge Inc. ------------------------------------------------------------------------ 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354 VP Apache Infrastructure; Member, Apache Software Foundation Committer, FreeBSD Foundation Consultant, P6M7G8 Inc. Sr. System Admin, Ridecharge Inc. >> Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching. >> > > -- ------------------------------------------------------------------------ 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354 VP Apache Infrastructure; Member, Apache Software Foundation Committer, FreeBSD Foundation Consultant, P6M7G8 Inc. Sr. System Admin, Ridecharge Inc. Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.