svn commit: r243228 - head/etc
John Hay
jhay at meraka.org.za
Tue Nov 20 10:59:03 UTC 2012
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 <f_zavatzki at 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
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 at meraka.csir.co.za / jhay at FreeBSD.org
More information about the svn-src-all
mailing list