From owner-svn-src-stable-10@FreeBSD.ORG Thu Aug 28 02:28:24 2014 Return-Path: Delivered-To: svn-src-stable-10@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 733674AF; Thu, 28 Aug 2014 02:28:24 +0000 (UTC) Received: from shxd.cx (unknown [64.201.244.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5A0883965; Thu, 28 Aug 2014 02:28:24 +0000 (UTC) Received: from 50-196-156-133-static.hfc.comcastbusiness.net ([50.196.156.133]:50190 helo=THEMADHATTER) by shxd.cx with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1XMVXQ-000IoQ-Af; Tue, 26 Aug 2014 22:12:52 -0700 From: To: "'Slawa Olhovchenkov'" , References: <201408260231.s7Q2VbCW087619@svn.freebsd.org> <20140827140902.GA41194@zxy.spb.ru> <1d0501cfc221$1114f850$333ee8f0$@FreeBSD.org> <20140827184832.GJ2075@zxy.spb.ru> In-Reply-To: <20140827184832.GJ2075@zxy.spb.ru> Subject: RE: svn commit: r270644 - stable/10/usr.sbin/bsdinstall/scripts Date: Wed, 27 Aug 2014 19:27:37 -0700 Message-ID: <1e8b01cfc267$a266a650$e733f2f0$@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQEo8EZCNfdT+2JOA5CJW31HcDTrpwF783yrAnwPISUCHU3ilZ0CPVHQ Content-Language: en-us Sender: devin@shxd.cx Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-10@freebsd.org, 'Andrew Thompson' X-BeenThere: svn-src-stable-10@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for only the 10-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2014 02:28:24 -0000 > -----Original Message----- > From: Slawa Olhovchenkov [mailto:slw@zxy.spb.ru] > Sent: Wednesday, August 27, 2014 11:49 AM > To: dteske@FreeBSD.org > Cc: 'Andrew Thompson'; src-committers@freebsd.org; svn-src- > all@freebsd.org; svn-src-stable@freebsd.org; svn-src-stable- > 10@freebsd.org > Subject: Re: svn commit: r270644 - stable/10/usr.sbin/bsdinstall/scripts > > On Wed, Aug 27, 2014 at 11:02:28AM -0700, dteske@FreeBSD.org wrote: > > > > > > > > -----Original Message----- > > > From: owner-src-committers@freebsd.org [mailto:owner-src- > > > committers@freebsd.org] On Behalf Of Slawa Olhovchenkov > > > Sent: Wednesday, August 27, 2014 7:09 AM > > > To: Andrew Thompson > > > Cc: src-committers@freebsd.org; svn-src-all@freebsd.org; svn-src- > > > stable@freebsd.org; svn-src-stable-10@freebsd.org > > > Subject: Re: svn commit: r270644 - stable/10/usr.sbin/bsdinstall/scripts > > > > > > On Tue, Aug 26, 2014 at 02:31:37AM +0000, Andrew Thompson wrote: > > > > > > In zfs directory layout you missing some separate datesets: > > > > > > usr/home (or, may be, just /home) > > > usr/obj > > > usr/ports/packages > > > usr/ports/distfiles > > > > > > Can you do it before 10.1? > > > > You must have missed the following in the evolution of that script: > > > > http://svnweb.freebsd.org/base?view=revision&revision=257842 > > > > [snip] > > + Remove some unnecessary default ZFS datasets from the automatic > "zfsboot" > > script. Such as: /usr/ports/distfiles /usr/ports/packages /usr/obj /var/db > > /var/empty /var/mail and /var/run (these can all be created as-needed > once > > the system is installed). > > [/snip] > > > > The idea is that all of those directories you mentioned are empty > > by default on a freshly installed system. Compare that to directories > > which are not empty -- if the user wants the data in a separate > > dataset, they have salvage existing data in the process. > > /home is not empty on a freshly installed system (I am create account > for remoty login). > I quote from your above test: "usr/home (or, may be, just /home)" On a freshly installed 10-STABLE snapshot: root@zbeastie:~ # ls /home ls: /home: No such file or directory root@zbeastie:~ # ls /usr/home root@zbeastie:~ # df -h /usr/home Filesystem Size Used Avail Capacity Mounted on zroot/usr/home 17G 96K 17G 0% /usr/home Now compare that to the following code: http://svnweb.freebsd.org/base/head/usr.sbin/bsdinstall/scripts/zfsboot?view =markup Read: There is a /usr/home already -- what's the issue? > Other datasets have special atributes and removing datasets is simples > then creating and to easy to forget create their before use. Perhaps; but if you're really deploying that many systems (to which it is a need that each be setup in the same [custom] manner), you really out to make a custom installer. Just rip open the installer ISO, create the following file: FILE: /etc/installerconfig ZFSBOOT_DATASETS=" # your custom settings here -- see /usr/libexec/bsdinstall/zfsboot " # END-QUOTE Then repack the ISO and use that instead of the generic release media. -- Devin