android-cuttlefish
android-cuttlefish copied to clipboard
Upgrade to Debian Bullseye and install rsync
The rsync tool can be used to efficiently copy images from an Android build directory into the container by sending only the file differences. rsync needs to be installed on both ends of the transfer. Since super.img and userdata.img are sparse in the build directory it's useful to pass the --sparse --inplace flags so that they end up being sparse in the container as well. Unfortunately there's a bug in older versions of rsync (such as the one in Debian Buster) that causes transfers with these flags to fail. See: https://github.com/WayneD/rsync/issues/53
Buster is already obsolete at this point, so let's upgrade to Bullseye which has a fixed version of rsync and install rsync into the container so that it doesn't need to be installed manually.
Unfortunately there's still an rsync bug that tends to affect super.img files when passing those two flags: https://github.com/WayneD/rsync/issues/450
This is still useful though because --sparse on its own isn't affected, so we can still get the disk space benefits of sparse files on the container end.
Looks like we are trying to bump to bookworm.
Looks like we are trying to bump to bookworm.
I did #347