Commit 44d39789 by Serge Hallyn

templates: use hardlink detection in rsync

I'm not sure whether we want this: is -H ubiquitous? Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com> Acked-by: 's avatarMichael H. Warfield <mhw@WittsEnd.com> Acked-by: 's avatarDwight Engen <dwight.engen@oracle.com>
parent 2130af26
...@@ -184,7 +184,7 @@ copy_altlinux() ...@@ -184,7 +184,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 -a $cache/rootfs/ $rootfs_path/ rsync -Ha $cache/rootfs/ $rootfs_path/
return 0 return 0
} }
......
...@@ -156,7 +156,7 @@ copy_debian() ...@@ -156,7 +156,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 -a "$cache/rootfs-$SUITE-$arch"/ $rootfs/ || return 1 rsync -Ha "$cache/rootfs-$SUITE-$arch"/ $rootfs/ || return 1
return 0 return 0
} }
......
...@@ -188,7 +188,7 @@ copy_fedora() ...@@ -188,7 +188,7 @@ copy_fedora()
#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 -Ha $cache/rootfs/ $rootfs_path/
return 0 return 0
} }
......
...@@ -207,7 +207,7 @@ copy_opensuse() ...@@ -207,7 +207,7 @@ copy_opensuse()
# make a local copy of the mini opensuse # make a local copy of the mini opensuse
echo -n "Copying rootfs to $rootfs ..." echo -n "Copying rootfs to $rootfs ..."
mkdir -p $rootfs mkdir -p $rootfs
rsync -a $cache/rootfs-$arch/ $rootfs/ || return 1 rsync -Ha $cache/rootfs-$arch/ $rootfs/ || return 1
return 0 return 0
} }
......
...@@ -249,7 +249,7 @@ copy_ubuntu() ...@@ -249,7 +249,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 -a $cache/rootfs-$arch/ $rootfs/ || return 1 rsync -Ha $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