]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Use "rsync -SHaAX" to copy the cached rootfs into place
authorHarald Dunkel <harri@afaics.de>
Fri, 28 Jul 2017 18:08:02 +0000 (13:08 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Aug 2017 19:31:43 +0000 (15:31 -0400)
(updated by Serge to also handle hte new lxc-fedora{-legacy{.in
templates)

Signed-off-by: Harald Dunkel <harri@afaics.de>
Signed-off-by: Serge Hallyn <serge@hallyn.com>
Acked-by: Serge Hallyn <serge@hallyn.com>
templates/lxc-altlinux.in
templates/lxc-centos.in
templates/lxc-debian.in
templates/lxc-fedora.in
templates/lxc-openmandriva.in
templates/lxc-opensuse.in
templates/lxc-ubuntu.in

index 5ba0512e44009aa2cbfafa0175f3f1d663d28f01..b51f5071fd990c2e12f66243cdcefef56a629aeb 100644 (file)
@@ -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
 }
 
index be22b9e044205e630427d6d53f2470a558d62b25..6e80893fd60799b04590b40edcac7cde1bdcc3b3 100644 (file)
@@ -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
 }
index a07c48cf6d77954f39461732bf7530a93dcaea74..14bb8623876f277d96a9307bd04ba2da450fd39a 100644 (file)
@@ -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
 }
 
index c0a20a684d595299254b0d93cc3df73b88af9544..611168d5124bc1dfafdcc012e7d425267978836d 100644 (file)
@@ -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
 }
index be8023e63c2686bde895d6e6c8196c9d85ee37ab..71898a9ae18b59e4f4be7457af6a70ad6a26b64a 100644 (file)
@@ -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
 }
 
index b840b16c46ea44b5ea3b709554bec9f68b14c77e..d7ae3afc593311b62775af0787bce82d3e283cae 100644 (file)
@@ -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
 }
 
index 07e43979de920469055a5fa6cbb8b58e88160b8b..a397a1dc4234d7eec6e0dc383d0e620aee388148 100644 (file)
@@ -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
 }