android-cuttlefish icon indicating copy to clipboard operation
android-cuttlefish copied to clipboard

Upgrade to Debian Bullseye and install rsync

Open pcc opened this issue 1 year ago • 3 comments

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.

pcc avatar Mar 09 '23 00:03 pcc

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.

pcc avatar Mar 09 '23 05:03 pcc

Looks like we are trying to bump to bookworm.

kwstephenkim avatar Jun 28 '23 23:06 kwstephenkim

Looks like we are trying to bump to bookworm.

I did #347

inceabdullah avatar Aug 18 '23 16:08 inceabdullah