From owner-freebsd-current@freebsd.org Thu Mar 10 00:20:42 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 82F9AAC9C86 for ; Thu, 10 Mar 2016 00:20:42 +0000 (UTC) (envelope-from marquis@roble.com) Received: from mx5.roble.com (mx5.roble.com [206.40.34.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx5.roble.com", Issuer "mx5.roble.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 787CFFBB for ; Thu, 10 Mar 2016 00:20:42 +0000 (UTC) (envelope-from marquis@roble.com) Received: from alba.roble.net (mx5.roble.com [206.40.34.5]) by mx5.roble.com (Postfix) with ESMTP id 8881467845; Wed, 9 Mar 2016 16:20:41 -0800 (PST) In-Reply-To: <56E0BA15.50702@quip.cz> References: <20160309233641.91BEA2849B@elsa.codelab.cz> <56E0BA15.50702@quip.cz> Date: Wed, 9 Mar 2016 16:20:42 -0800 Subject: Re: zfsboot patch for /usr From: "Roger Marquis" To: "Miroslav Lachman" <000.fbsd@quip.cz> Cc: freebsd-current@freebsd.org Reply-To: marquis@roble.com MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2016 00:20:42 -0000 > I no nothing about this script but if you want /usr/local as ZFS > filesystem, then you need to create parent (/usr in this case) and you > can use property canmount=off plus different 'mountpoint' (for example > /mnt/usr) to not mount /usr over existing directory on root filesystem. Exactly, but in our case we don't want a separate partition for /usr (never understood why anyone would since 1GB drives became affordable). As a beadm user I'm also assuming a rollback-able boot image would need to include /usr in the root filesystem. To do this in bsdinstall/scripts/zfsboot requires a 'mkdir' instead of 'zfs create'. Looks like it might be a matter of copying the $MKDIR_P around line 1125 but am testing that now. Roger