From owner-freebsd-current@freebsd.org Thu Mar 10 01:02:03 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 178B8AC90FC for ; Thu, 10 Mar 2016 01:02:03 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-ig0-x230.google.com (mail-ig0-x230.google.com [IPv6:2607:f8b0:4001:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D7DC3E9D for ; Thu, 10 Mar 2016 01:02:02 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mail-ig0-x230.google.com with SMTP id ig19so6495922igb.0 for ; Wed, 09 Mar 2016 17:02:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=yKcRcwnwmlVqNOjEZxPLzmyQ+Q2BBubyL4Fk0oPnqME=; b=FdPOuFsj7a28c2ZbS4AeyH/gXsNxBhzfn1lkvD53ZIe87cI5PUez2iH6hxEZUdTCMF KN3LjR2JgB+2oep4s6Yn/RXb1gE3IDpTl+90hV2m2g+8twEHwKQn9ZBi1/JeOD48A6dP DAWx0AOwEU3R1stThldhJ1oTqvtn3xsyHWPk449Y56XVK/9XE7JhuztOnQuZTJR0ZmJB tqykt98l7z8/h23DEk8Gl+NdoLw7XZZicnKGb8GsX9Hle6L/Z8U0S0ZpFpVnYfn5x2ja CB21ZvBP6O6Lu9ZP1SzS1jvRSiLVkYnx8j4BBNBWqfKyqpHcJDxAR9gRQZFddmg9/aJU Fflg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=yKcRcwnwmlVqNOjEZxPLzmyQ+Q2BBubyL4Fk0oPnqME=; b=G+m10ipMQZfuMN9lJIZEqnHQyLCv6urvVUJwJ5+aGO9tnR4tu0/8e7WfHUf5Ur5F6M pfvGmETrCeRnpkJJqX98ecuAOdSwczXUVsjKsWfBkQFyKskbw8qAgG6K7243EAoUHVXV JKSsJfKQLZnR0okVKexLNhRhtQGQJ0dvwTXD5QcJfEbLj+II2ShdI8G7KE3aZ/KyrAc6 HDiF8jBsQbA3xAtde1RgGgHwMjoKEtV+Mi6lX+vXhMMUrcoO4up0nrq/zIxPAeXbyat5 QlCNyxPImFX/Ce/Dqj2qlIBWEA8sl0jNYkuv0m6l6i5iHzEOObDggm+e2nr8pG+Q0M02 fhGg== X-Gm-Message-State: AD7BkJJefWd21laQdS0ZIBFYQ9vRosDrdrFmRO3PKFjpxNfr27rOeMZQqKyZzLACOgkc4oBMBcAADNiuu9UDXw== MIME-Version: 1.0 X-Received: by 10.50.178.136 with SMTP id cy8mr799272igc.14.1457571722150; Wed, 09 Mar 2016 17:02:02 -0800 (PST) Received: by 10.107.140.129 with HTTP; Wed, 9 Mar 2016 17:02:02 -0800 (PST) Received: by 10.107.140.129 with HTTP; Wed, 9 Mar 2016 17:02:02 -0800 (PST) In-Reply-To: <56E0BA15.50702@quip.cz> References: <20160309233641.91BEA2849B@elsa.codelab.cz> <56E0BA15.50702@quip.cz> Date: Wed, 9 Mar 2016 17:02:02 -0800 Message-ID: Subject: Re: zfsboot patch for /usr From: Freddie Cash To: Miroslav Lachman <000.fbsd@quip.cz> Cc: marquis@roble.com, FreeBSD-Current Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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 01:02:03 -0000 On Mar 9, 2016 4:04 PM, "Miroslav Lachman" <000.fbsd@quip.cz> wrote: > > Roger Marquis wrote on 03/10/2016 00:36: >> >> Wondering if anyone has example patches for zfsboot (from >> usr.sbin/bsdinstall/scripts)? >> >> We're looking to change some of the default zfs subvolumes, removing /usr in >> favor of /usr/local in particular, and have run into a "parent does not exist" >> issue. It's not clear where in the script the /usr parent dir should be >> mkdir'd. > > > 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. Set mountpoint=none if you just want to create the parent dataset without actually using it for storage. Then you can set properties on it, and child datasets will inherit then. Like pool/usr/local You'd still need to "mkdir /usr" in the script, but that's separate.