Skip to content

[Build] don't install rsync if vcache is disabled#14407

Merged
xumia merged 1 commit intosonic-net:masterfrom
k-v1:dont_install_rsync
Mar 28, 2023
Merged

[Build] don't install rsync if vcache is disabled#14407
xumia merged 1 commit intosonic-net:masterfrom
k-v1:dont_install_rsync

Conversation

@k-v1
Copy link
Copy Markdown
Contributor

@k-v1 k-v1 commented Mar 24, 2023

Why I did it

We don't need to install rsync in every docker container if vcache is disabled.

How I did it

Install rsync in pre_run_buildinfo script only if vcache is enabled.

How to verify it

@lguohan lguohan requested a review from xumia March 27, 2023 21:13
@xumia
Copy link
Copy Markdown
Collaborator

xumia commented Mar 28, 2023

LGTM, the build failure may be caused by not running the command "apt-get update". I sent another PR to fix it, #14439. @k-v1, you also cherry-pick the commit in your PR, or rerun the test after the PR merged.

Step 14/77 : RUN apt-get install -y gnupg
 ---> Running in 803670deee75
Reading package lists...
Building dependency tree...
Reading state information...
Package gnupg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gnupg' has no installation candidate
The command '/bin/sh -c apt-get install -y gnupg' returned a non-zero code: 100

@xumia
Copy link
Copy Markdown
Collaborator

xumia commented Mar 28, 2023

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@xumia xumia merged commit 80d30da into sonic-net:master Mar 28, 2023
@k-v1 k-v1 deleted the dont_install_rsync branch May 11, 2023 01:11
jerrychuWis pushed a commit to WistronNetworking/sonic-buildimage that referenced this pull request Dec 17, 2025
[Bug/Feature]
Bug

[Root Causes]
in sonic 202211, it will install rsync on all dockers.
And it will install rsync on host due to it will be called in
sonic-build-hooks. After installation, host will have one more service-
rsync.service.

The rsync.service need /etc/rsync.conf as critical file. we don't have
it. so it always be inactived.

[Solution]
There have a PR for master which mentioned we don't need to install
rsync if vcached is disabled.
sonic-net#14407

Since we are not using rsync in host. Turn off as workaround.
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.

2 participants