From: Harald Dunkel Date: Fri, 28 Jul 2017 18:08:02 +0000 (-0500) Subject: Use "rsync -SHaAX" to copy the cached rootfs into place X-Git-Tag: lxc-1.0.11~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=929d2675092bf978f9ca792113d41c1930cb3e70;p=thirdparty%2Flxc.git Use "rsync -SHaAX" to copy the cached rootfs into place (updated by Serge to also handle hte new lxc-fedora{-legacy{.in templates) Signed-off-by: Harald Dunkel Signed-off-by: Serge Hallyn Acked-by: Serge Hallyn --- diff --git a/templates/lxc-altlinux.in b/templates/lxc-altlinux.in index 5ba0512e4..b51f5071f 100644 --- a/templates/lxc-altlinux.in +++ b/templates/lxc-altlinux.in @@ -203,7 +203,7 @@ copy_altlinux() #cp -a $cache/rootfs-$arch $rootfs_path || return 1 # i prefer rsync (no reason really) mkdir -p $rootfs_path - rsync -Ha $cache/rootfs/ $rootfs_path/ + rsync -SHaAX $cache/rootfs/ $rootfs_path/ return 0 } diff --git a/templates/lxc-centos.in b/templates/lxc-centos.in index be22b9e04..6e80893fd 100644 --- a/templates/lxc-centos.in +++ b/templates/lxc-centos.in @@ -523,7 +523,7 @@ copy_centos() #cp -a $cache/rootfs-$arch $rootfs_path || return 1 # i prefer rsync (no reason really) mkdir -p $rootfs_path - rsync -a $cache/rootfs/ $rootfs_path/ + rsync -SHaAX $cache/rootfs/ $rootfs_path/ echo return 0 } diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in index a07c48cf6..14bb86238 100644 --- a/templates/lxc-debian.in +++ b/templates/lxc-debian.in @@ -319,7 +319,7 @@ copy_debian() # make a local copy of the minidebian echo -n "Copying rootfs to $rootfs..." mkdir -p $rootfs - rsync -Ha "$cache/rootfs-$release-$arch"/ $rootfs/ || return 1 + rsync -SHaAX "$cache/rootfs-$release-$arch"/ $rootfs/ || return 1 return 0 } diff --git a/templates/lxc-fedora.in b/templates/lxc-fedora.in index c0a20a684..611168d51 100644 --- a/templates/lxc-fedora.in +++ b/templates/lxc-fedora.in @@ -1005,7 +1005,7 @@ copy_fedora() #cp -a $cache/rootfs-$basearch $rootfs_path || return 1 # i prefer rsync (no reason really) mkdir -p $rootfs_path - rsync -Ha $cache/rootfs/ $rootfs_path/ + rsync -SHaAX $cache/rootfs/ $rootfs_path/ echo return 0 } diff --git a/templates/lxc-openmandriva.in b/templates/lxc-openmandriva.in index be8023e63..71898a9ae 100644 --- a/templates/lxc-openmandriva.in +++ b/templates/lxc-openmandriva.in @@ -155,7 +155,7 @@ copy_openmandriva() echo -n "Copying rootfs to $rootfs_path ..." mkdir -p $rootfs_path - rsync -Ha $cache/rootfs/ $rootfs_path/ + rsync -SHaAX $cache/rootfs/ $rootfs_path/ return 0 } diff --git a/templates/lxc-opensuse.in b/templates/lxc-opensuse.in index b840b16c4..d7ae3afc5 100644 --- a/templates/lxc-opensuse.in +++ b/templates/lxc-opensuse.in @@ -208,7 +208,7 @@ copy_opensuse() # make a local copy of the mini opensuse echo "Copying rootfs to $rootfs ..." mkdir -p $rootfs - rsync -Ha $cache/rootfs-$arch/ $rootfs/ || return 1 + rsync -SHaAX $cache/rootfs-$arch/ $rootfs/ || return 1 return 0 } diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index 07e43979d..a397a1dc4 100644 --- a/templates/lxc-ubuntu.in +++ b/templates/lxc-ubuntu.in @@ -388,7 +388,7 @@ copy_ubuntu() # make a local copy of the miniubuntu echo "Copying rootfs to $rootfs ..." mkdir -p $rootfs - rsync -Ha $cache/rootfs-$arch/ $rootfs/ || return 1 + rsync -SHaAX $cache/rootfs-$arch/ $rootfs/ || return 1 return 0 }