From owner-freebsd-rc@FreeBSD.ORG Sun Jan 10 04:18:27 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 D5796106566C for ; Sun, 10 Jan 2010 04:18:27 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello089077043238.chello.pl [89.77.43.238]) by mx1.freebsd.org (Postfix) with ESMTP id 271A88FC18 for ; Sun, 10 Jan 2010 04:18:26 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id F246A45E8F; Sun, 10 Jan 2010 04:52:20 +0100 (CET) Received: from localhost (chello089077043238.chello.pl [89.77.43.238]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 8D5B845D8D; Sun, 10 Jan 2010 04:52:15 +0100 (CET) Date: Sun, 10 Jan 2010 04:52:24 +0100 From: Pawel Jakub Dawidek To: "Philip M. Gollucci" Message-ID: <20100110035224.GC1657@garage.freebsd.pl> References: <4B47F1DB.8080800@p6m7g8.com> <4B4829B7.1060700@FreeBSD.org> <4B48F161.4070602@p6m7g8.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="t0UkRYy7tHLRMCai" Content-Disposition: inline In-Reply-To: <4B48F161.4070602@p6m7g8.com> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.6 required=4.5 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: rc@freebsd.org Subject: Re: [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: Sun, 10 Jan 2010 04:18:27 -0000 --t0UkRYy7tHLRMCai Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 09, 2010 at 09:13:05PM +0000, Philip M. Gollucci wrote: > example - >=20 > $ zpool create zroot .... > $ zfs set mountpoint=3Dlegacy zroot > [basically follow the wiki for GPTZFS boot] >=20 > $ zfs create zroot/software > $ zfs create -p zroot/jails/x > $ zfs set mountpoint=3D/software zroot/software > $ zfs set mountpoint=3D/jails zroot/jails >=20 > $ mkdir -p /jails/x/software >=20 > $ cat /etc/fstab > /software /jails/x/software nullfs ro 0 0 >=20 > reboot >=20 > 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 >=20 > 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. Have you tested something like this: /etc/fstab: /dev/da0 /mnt ufs rw 0 0 zfs create -o mountpoint=3D/mnt/foo pool/foo This is bascially the opposite. Here /etc/fstab must be mounted before 'zfs mount -a' is called. All in all if you need to mount file systems for your jails use /etc/fstab.. This way rc.d/jail will mount needed file systems when you start jail. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --t0UkRYy7tHLRMCai Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFLSU73ForvXbEpPzQRAm1dAKDDobTp32MHSpTmC8lZta2d2lVt+ACcCcjx kGUaUPciykrD3nmdSdAIHdc= =sLSr -----END PGP SIGNATURE----- --t0UkRYy7tHLRMCai--