From 1c7f0c9761ede2d91a12b2d811e0588807501a2c Mon Sep 17 00:00:00 2001 From: termie Date: Wed, 28 Sep 2011 17:09:00 -0500 Subject: [PATCH] follow symlinks when copying env --- build_lxc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_lxc.sh b/build_lxc.sh index 74b63c3..7598a90 100755 --- a/build_lxc.sh +++ b/build_lxc.sh @@ -145,7 +145,7 @@ cp -pR /lib/modules/`uname -r`/kernel/net $ROOTFS/lib/modules/`uname -r`/kernel/ # Gracefully cp only if source file/dir exists function cp_it { if [ -e $1 ] || [ -d $1 ]; then - cp -pr $1 $2 + cp -pRL $1 $2 fi }