Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Debian Bullseye and install rsync #258

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pcc
Copy link
Contributor

@pcc pcc commented Mar 9, 2023

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: RsyncProject/rsync#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.

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:
RsyncProject/rsync#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
Copy link
Contributor Author

pcc commented Mar 9, 2023

Unfortunately there's still an rsync bug that tends to affect super.img files when passing those two flags: RsyncProject/rsync#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.

@kwstephenkim
Copy link
Contributor

Looks like we are trying to bump to bookworm.

@inceabdullah
Copy link

Looks like we are trying to bump to bookworm.

I did
#347

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants