From owner-freebsd-sysinstall@FreeBSD.ORG Tue Mar 25 15:32:07 2014 Return-Path: Delivered-To: sysinstall@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 29D39D47; Tue, 25 Mar 2014 15:32:07 +0000 (UTC) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E6C6AC2B; Tue, 25 Mar 2014 15:32:06 +0000 (UTC) Received: from smarthost.fisglobal.com ([10.132.206.192]) by ltcfislmsgpa02.fnfis.com (8.14.5/8.14.5) with ESMTP id s2PFVxnj002872 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Tue, 25 Mar 2014 10:32:00 -0500 Received: from THEMADHATTER (10.242.181.54) by smarthost.fisglobal.com (10.132.206.192) with Microsoft SMTP Server id 14.3.174.1; Tue, 25 Mar 2014 10:31:55 -0500 From: Sender: Devin Teske To: "'Bryan Drewery'" References: <532D84AF.5080506@FreeBSD.org> <010101cf45de$c9707380$5c515a80$@FreeBSD.org> <532DA62A.7020106@FreeBSD.org> In-Reply-To: <532DA62A.7020106@FreeBSD.org> Subject: RE: bsdinstall ZFS /root in wrong dataset Date: Tue, 25 Mar 2014 08:31:52 -0700 Message-ID: <01cc01cf483f$5a90eae0$0fb2c0a0$@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQHLz5xmDx81IywBvK/rXThmV93ImQIZvjExAqGVqRia0wPIcA== Content-Language: en-us X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.87, 1.0.14, 0.0.0000 definitions=2014-03-25_04:2014-03-25,2014-03-25,1970-01-01 signatures=0 Cc: dteske@FreeBSD.org, sysinstall@FreeBSD.org X-BeenThere: freebsd-sysinstall@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Sysinstall Work List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Mar 2014 15:32:07 -0000 > -----Original Message----- > From: Bryan Drewery [mailto:bdrewery@FreeBSD.org] > Sent: Saturday, March 22, 2014 8:03 AM > To: dteske@FreeBSD.org > Cc: sysinstall@FreeBSD.org > Subject: Re: bsdinstall ZFS /root in wrong dataset >=20 > On 3/22/2014 9:55 AM, dteske@FreeBSD.org wrote: > >> -----Original Message----- > >> From: Bryan Drewery [mailto:bdrewery@FreeBSD.org] > >> Sent: Saturday, March 22, 2014 5:40 AM > >> To: sysinstall@FreeBSD.org > >> Subject: bsdinstall ZFS /root in wrong dataset > >> > >> (I am not subscribed so please CC me) > >> > >> The ZFS layout uses the zroot/ROOT/ to support boot environments. > >> The problem with it is that /root is part of the BE. Home directories > >> are properly outside of the BE. > >> > >> /root should really be outside to persist history and other changes > >> to > > root's > >> homedir through BE changes/upgrades. > >> > >> This is quite noticeable if you create a new BE (beadm create; beadm > >> mount) and then installworld/kernel into it, then activate and reboot. > >> All of your history and /root changes are missing for the period > >> between creating the BE and rebooting. > >> > >> Something like this is needed: > >> > >>> --- usr.sbin/bsdinstall/scripts/zfsboot (revision 263620) > >>> +++ usr.sbin/bsdinstall/scripts/zfsboot (working copy) > >>> @@ -128,6 +128,8 @@ > >>> > >>> # Home directories separated so they are common to all BEs > >>> /usr/home # NB: /home is a symlink to /usr/home > >>> + /root mountpoint=3D/root > >>> > >>> # Ports tree > >>> /usr/ports compression=3Dlz4,setuid=3Doff > >> > >> > >> Though, I am unsure on whether we should make a zroot/root dataset > >> and mount it in or mkdir /usr/home/root and symlink /root to it. The > >> symlink does cause mergemaster confusion though. I have no opinion on > >> where we create the root dataset, as long as it is outside of ROOT. > >> > > > > Hi bdrewery, > > > > Thanks for kicking off this thread (esp. on list). > > > > Placing /root in /usr/home/root would break in a few scenarios as you > > correctly identified. Let's give your patch a go and wait for some > > feedback before MFC'ing. I don't expect any fallout from your patch; > > looks great and indeed should solve the problem (if I understand correctly). > > > > Do you want to commit or should I? > > >=20 > Sounds good. I'll commit in about an hour. >=20 Got a test result from the commit on -current... > -----Original Message----- > From: Bruno Lauz=E9 [mailto:brunolauze@msn.com] > Sent: Tuesday, March 25, 2014 7:29 AM > To: freebsd-current@freebsd.org > Subject: install error with r263638 >=20 > I am experiencing issue related to r263638.During a ZFS Install, it does create > a new volume for /root but bsdinstall cannot copy "root/.cshrc" during > base.txz extraction.Would we want to [add] ",canmount=3Doff" or change the > way root profile gets created for zfs install? > What could be the cause? Got so much other stuff to think about right now... But I think the user is saying that we broke it ;D --=20 Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.