Skip to content

Always install bash-completion in image#25912

Merged
lguohan merged 1 commit intosonic-net:masterfrom
saiarcot895:fix-utilities-completion
Mar 7, 2026
Merged

Always install bash-completion in image#25912
lguohan merged 1 commit intosonic-net:masterfrom
saiarcot895:fix-utilities-completion

Conversation

@saiarcot895
Copy link
Copy Markdown
Contributor

@saiarcot895 saiarcot895 commented Mar 5, 2026

Why I did it

With sonic-net/sonic-utilities#4163, the bash-completion package was moved from Requires to Suggests. This means that it won't be installed by default.

Work item tracking
  • Microsoft ADO (number only):

How I did it

Make sure we install it always in build_debian.sh, so that completions work.

How to verify it

Which release branch to backport (provide reason below if selected)

  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

With sonic-net/sonic-utilities#4163, the bash-completion package was
moved from Requires to Suggests. This means that it won't be installed
by default.

Make sure we install it always, so that completions work.

Signed-off-by: Saikrishna Arcot <[email protected]>
@saiarcot895 saiarcot895 requested a review from lguohan as a code owner March 5, 2026 06:58
Copilot AI review requested due to automatic review settings March 5, 2026 06:58
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR ensures that the bash-completion package is always installed in the SONiC image. After sonic-utilities moved bash-completion from Requires to Suggests (sonic-net/sonic-utilities#4163), it would no longer be installed by default, breaking shell completions.

Changes:

  • Added bash-completion to the explicit package install list in build_debian.sh.
  • Updated a comment in sonic_debian_extension.j2 to remove the now-outdated reference to sonic-utilities-data installing bash-completion as a dependency.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
build_debian.sh Adds bash-completion to the base apt-get install list so it is always present in the image.
files/build_templates/sonic_debian_extension.j2 Updates comment to remove stale reference to sonic-utilities-data pulling in bash-completion.

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@tjchadaga tjchadaga requested a review from yxieca March 6, 2026 22:26
@yxieca yxieca requested a review from liat-grozovik March 6, 2026 23:43
@yxieca
Copy link
Copy Markdown
Contributor

yxieca commented Mar 6, 2026

@liat-grozovik I thought there was some issue with installing this by default? On wimpy CPU platform like 2700 we had issue before?

@yxieca yxieca requested a review from bingwang-ms March 6, 2026 23:49
@lguohan lguohan merged commit 159ee4b into sonic-net:master Mar 7, 2026
25 of 26 checks passed
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202511: #25948

jackson-micas pushed a commit to jackson-micas/sonic-buildimage that referenced this pull request Mar 10, 2026
With sonic-net/sonic-utilities#4163, the bash-completion package was
moved from Requires to Suggests. This means that it won't be installed
by default.

Make sure we install it always, so that completions work.

Signed-off-by: Saikrishna Arcot <[email protected]>
Signed-off-by: jackson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants