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()
#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
}
......
......@@ -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
}
......
......@@ -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
}
......
......@@ -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
}
......
......@@ -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
}
......
......@@ -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
}
......
......@@ -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
}
......
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