#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
}
#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
}
btrfs subvolume snapshot "$cache/rootfs-$release-$arch" "$realrootfs" || return 1
[ "$rootfs" = "$realrootfs" ] || mount --bind "$realrootfs" "$rootfs" || return 1
else
- rsync -Ha "$cache/rootfs-$release-$arch"/ "$rootfs"/ || return 1
+ rsync -SHaAX "$cache/rootfs-$release-$arch"/ $rootfs/ || return 1
fi
return 0
}
#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
}
echo -n "Copying ${cache} to ${rootfs} ... "
mkdir -p "${rootfs}" &&
- rsync --archive --hard-links --sparse "${cache}/" "${rootfs}/" &&
+ rsync --archive --hard-links --sparse --acls --xattrs "${cache}/" "${rootfs}/" &&
echo || return 1
return 0
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
}
# 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
}
btrfs subvolume snapshot $cache/rootfs-$arch $realrootfs || return 1
[ "$rootfs" = "$realrootfs" ] || mount --bind $realrootfs $rootfs || return 1
else
- rsync -Ha $cache/rootfs-$arch/ $rootfs/ || return 1
+ rsync -SHaAX $cache/rootfs-$arch/ $rootfs/ || return 1
fi
return 0
}