Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Nov 2012 14:21:05 +0000 (UTC)
From:      Chris Rees <crees@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243228 - head/etc
Message-ID:  <201211181421.qAIEL5KT042019@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <f_zavatzki@blue-network.org>
  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211181421.qAIEL5KT042019>