From owner-freebsd-current@freebsd.org Thu Mar 10 01:16:04 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 094FBAC95D7 for ; Thu, 10 Mar 2016 01:16:04 +0000 (UTC) (envelope-from ultima1252@gmail.com) Received: from mail-vk0-x229.google.com (mail-vk0-x229.google.com [IPv6:2607:f8b0:400c:c05::229]) (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 B90D2836 for ; Thu, 10 Mar 2016 01:16:03 +0000 (UTC) (envelope-from ultima1252@gmail.com) Received: by mail-vk0-x229.google.com with SMTP id c3so77988278vkb.3 for ; Wed, 09 Mar 2016 17:16:03 -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=ou/wzOzkQcU0AM0QoaokpNmCPOA19ibFThCU5KaYtao=; b=e6WehNe9zJbTz3J+ijD2WHpt6THemJA0RIOe4GDjftNrbXNAaQLAvza9M+Gh9dYm50 IIo6eO+f9uxGazWJpmYmoF9m8YIyHGn7YIUoaUTJZy+/zX4DXvh0sEEyPwReUmFsALwN 93VowjkUniMs+yzBzzgCJBTjigZUIuedkEctV7daLJIzUxDbnHPgfGq9+CNk+wnkGFYt i5WOcFvNjYRhh/WzRPcfl2t1OTWqy5swin8ipya+z9dsQyl1FoXf+lv0z6LO5Q4F6kIP Y2woX8hCxkLagMIRwC/yWTo/GacpY7/3hzCA239VkulIw0K4Jq1BlykLuMwOjD1pdmZj QCcA== 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=ou/wzOzkQcU0AM0QoaokpNmCPOA19ibFThCU5KaYtao=; b=H9OP1Ha3o+NHv6unpduDXVAMMmtLRLijC6fXqsui3iNgDw9hDgV5tgRMK0IthIF0Kn IXzjQDJQfo+haScHwhm4RVv2Tp/ZyJls+AU1/bTGsDHo7MccG1br4C1vJ3ImebBOSezx Lv2Kjk31S3wpN9Msu469GueRRsMmxvEEh2DjRusPowvj2BDYqfdKQu+ydhr0yU5H7nue RmsxRaXXqgkSq3oVgP0RNKcmC7UEzELD/aEDTpsFsJQGnIEYBAkdjmsQDll0MXmiorSS 6ZJzYmdb1GhTcjW902u9cT4TOdTAypMIvQhkote3cJFxXguR9J1VIyR3RCTOVS10dT3W /a/g== X-Gm-Message-State: AD7BkJKgi0qwsi1wIDRdUUvc9Bb2JxW3kkPll9QAtssS9Qc+15Ahpm9T0avR0SDducMWF27GM7/w9gXlG8cwgw== MIME-Version: 1.0 X-Received: by 10.31.107.25 with SMTP id g25mr830802vkc.15.1457572562822; Wed, 09 Mar 2016 17:16:02 -0800 (PST) Received: by 10.31.194.194 with HTTP; Wed, 9 Mar 2016 17:16:02 -0800 (PST) In-Reply-To: References: <20160309233641.91BEA2849B@elsa.codelab.cz> <56E0BA15.50702@quip.cz> Date: Wed, 9 Mar 2016 20:16:02 -0500 Message-ID: Subject: Re: zfsboot patch for /usr From: Ultima To: marquis@roble.com Cc: freebsd-current@freebsd.org 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:16:04 -0000 Zfs automatically creates directories needed to be mounted, it would be a wasted effort making directories for zfs. I don't really understand your issue with an unused /usr dataset, but you can just modify the ZFSBOOT_DATASETS area of the script to get accomplish what you're trying to do. On Wed, Mar 9, 2016 at 8:02 PM, Freddie Cash wrote: > 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. > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >