diff options
author | Chris Rees <crees@FreeBSD.org> | 2012-11-18 14:21:05 +0000 |
---|---|---|
committer | Chris Rees <crees@FreeBSD.org> | 2012-11-18 14:21:05 +0000 |
commit | 0a1285e72bc621ce07a416f248054a0ea9931e32 (patch) | |
tree | 34c5f2de1a8f54e743592e641839e8dcd8790dde /etc | |
parent | 73e357ea5b8b3f2411d7005003980a07d1ed5f36 (diff) | |
download | src-0a1285e72bc621ce07a416f248054a0ea9931e32.tar.gz src-0a1285e72bc621ce07a416f248054a0ea9931e32.zip |
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
Notes
Notes:
svn path=/head/; revision=243228
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc.initdiskless | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.initdiskless b/etc/rc.initdiskless index cfb9214b5d0b..60fe6bcfd56a 100644 --- a/etc/rc.initdiskless +++ b/etc/rc.initdiskless @@ -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 |