Unverified Commit 929d2675 by Harald Dunkel Committed by Stéphane Graber

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: 's avatarHarald Dunkel <harri@afaics.de> Signed-off-by: 's avatarSerge Hallyn <serge@hallyn.com> Acked-by: 's avatarSerge Hallyn <serge@hallyn.com>
parent f0621266
...@@ -203,7 +203,7 @@ copy_altlinux() ...@@ -203,7 +203,7 @@ copy_altlinux()
#cp -a $cache/rootfs-$arch $rootfs_path || return 1 #cp -a $cache/rootfs-$arch $rootfs_path || return 1
# i prefer rsync (no reason really) # i prefer rsync (no reason really)
mkdir -p $rootfs_path mkdir -p $rootfs_path
rsync -Ha $cache/rootfs/ $rootfs_path/ rsync -SHaAX $cache/rootfs/ $rootfs_path/
return 0 return 0
} }
......
...@@ -523,7 +523,7 @@ copy_centos() ...@@ -523,7 +523,7 @@ copy_centos()
#cp -a $cache/rootfs-$arch $rootfs_path || return 1 #cp -a $cache/rootfs-$arch $rootfs_path || return 1
# i prefer rsync (no reason really) # i prefer rsync (no reason really)
mkdir -p $rootfs_path mkdir -p $rootfs_path
rsync -a $cache/rootfs/ $rootfs_path/ rsync -SHaAX $cache/rootfs/ $rootfs_path/
echo echo
return 0 return 0
} }
......
...@@ -319,7 +319,7 @@ copy_debian() ...@@ -319,7 +319,7 @@ copy_debian()
# make a local copy of the minidebian # make a local copy of the minidebian
echo -n "Copying rootfs to $rootfs..." echo -n "Copying rootfs to $rootfs..."
mkdir -p $rootfs mkdir -p $rootfs
rsync -Ha "$cache/rootfs-$release-$arch"/ $rootfs/ || return 1 rsync -SHaAX "$cache/rootfs-$release-$arch"/ $rootfs/ || return 1
return 0 return 0
} }
......
...@@ -1005,7 +1005,7 @@ copy_fedora() ...@@ -1005,7 +1005,7 @@ copy_fedora()
#cp -a $cache/rootfs-$basearch $rootfs_path || return 1 #cp -a $cache/rootfs-$basearch $rootfs_path || return 1
# i prefer rsync (no reason really) # i prefer rsync (no reason really)
mkdir -p $rootfs_path mkdir -p $rootfs_path
rsync -Ha $cache/rootfs/ $rootfs_path/ rsync -SHaAX $cache/rootfs/ $rootfs_path/
echo echo
return 0 return 0
} }
......
...@@ -155,7 +155,7 @@ copy_openmandriva() ...@@ -155,7 +155,7 @@ copy_openmandriva()
echo -n "Copying rootfs to $rootfs_path ..." echo -n "Copying rootfs to $rootfs_path ..."
mkdir -p $rootfs_path mkdir -p $rootfs_path
rsync -Ha $cache/rootfs/ $rootfs_path/ rsync -SHaAX $cache/rootfs/ $rootfs_path/
return 0 return 0
} }
......
...@@ -208,7 +208,7 @@ copy_opensuse() ...@@ -208,7 +208,7 @@ copy_opensuse()
# make a local copy of the mini opensuse # make a local copy of the mini opensuse
echo "Copying rootfs to $rootfs ..." echo "Copying rootfs to $rootfs ..."
mkdir -p $rootfs mkdir -p $rootfs
rsync -Ha $cache/rootfs-$arch/ $rootfs/ || return 1 rsync -SHaAX $cache/rootfs-$arch/ $rootfs/ || return 1
return 0 return 0
} }
......
...@@ -388,7 +388,7 @@ copy_ubuntu() ...@@ -388,7 +388,7 @@ copy_ubuntu()
# make a local copy of the miniubuntu # make a local copy of the miniubuntu
echo "Copying rootfs to $rootfs ..." echo "Copying rootfs to $rootfs ..."
mkdir -p $rootfs mkdir -p $rootfs
rsync -Ha $cache/rootfs-$arch/ $rootfs/ || return 1 rsync -SHaAX $cache/rootfs-$arch/ $rootfs/ || return 1
return 0 return 0
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment