From owner-svn-src-head@FreeBSD.ORG Tue Nov 20 10:59:03 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3379FAB3; Tue, 20 Nov 2012 10:59:03 +0000 (UTC) (envelope-from jhay@meraka.csir.co.za) Received: from zibbi.meraka.csir.co.za (zibbi.meraka.csir.co.za [IPv6:2001:4200:7000:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 0F9688FC14; Tue, 20 Nov 2012 10:59:02 +0000 (UTC) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id 4BF7AB817; Tue, 20 Nov 2012 12:58:58 +0200 (SAST) Date: Tue, 20 Nov 2012 12:58:58 +0200 From: John Hay To: Chris Rees Subject: Re: svn commit: r243228 - head/etc Message-ID: <20121120105858.GA73018@zibbi.meraka.csir.co.za> References: <201211181421.qAIEL5KT042019@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201211181421.qAIEL5KT042019@svn.freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Nov 2012 10:59:03 -0000 Hi Chris, On Sun, Nov 18, 2012 at 02:21:05PM +0000, Chris Rees wrote: > Author: crees (ports committer) > Date: Sun Nov 18 14:21:05 2012 > New Revision: 243228 > URL: http://svnweb.freebsd.org/changeset/base/243228 > > Log: > cp -R misses out dotfiles; use pax instead to copy file hierarchies > > PR: conf/99721 (based on) > Submitted by: Florian Zavatzki > Approved by: hrs > MFC after: 1 month > > Modified: > head/etc/rc.initdiskless > > Modified: head/etc/rc.initdiskless > ============================================================================== > --- head/etc/rc.initdiskless Sun Nov 18 14:05:28 2012 (r243227) > +++ head/etc/rc.initdiskless Sun Nov 18 14:21:05 2012 (r243228) > @@ -354,7 +354,7 @@ for i in ${templates} ; do > subdir=${j##*/} > if [ -d $j -a ! -f $j.cpio.gz ]; then > create_md $subdir > - cp -Rp $j/ /$subdir > + (cd $j && pax -rw . /$subdir) > fi > done > for j in /conf/$i/*.cpio.gz ; do Have you tested this on a diskless and readonly system? It looks like pax need to write something in /tmp and it might not be writeable yet. I got an error, after the first of /bin/pax not found and having to add that to the list of files needed. John -- John Hay -- jhay@meraka.csir.co.za / jhay@FreeBSD.org