Skip to content

Comments

Make bfb installer install first bfb-intermediate file found inside archive#25544

Open
croos12 wants to merge 5 commits intosonic-net:masterfrom
croos12:bfb-match-any
Open

Make bfb installer install first bfb-intermediate file found inside archive#25544
croos12 wants to merge 5 commits intosonic-net:masterfrom
croos12:bfb-match-any

Conversation

@croos12
Copy link
Contributor

@croos12 croos12 commented Feb 17, 2026

Why I did it

The existing sonic-bfb-installer.sh script does not install bfb-intermediate files if they do not match the name of the bfb package. This PR removes the check that the bfb-intermediate file has the same name as the bfb package and instead matches to the first bfb-intermediate file found so that the bfb-intermediate file is read even if it does not match the name of the package.

How I did it

Removed grep "$(basename "$bfb_file")"

How to verify it

Test by giving the tar archive a different name than the bfb-intermediate file inside it:

root@npu:/home/admin# mv sonic-nvidia-bluefield.bfb 202511_RC_sonic-nvidia-bluefield.bfb
root@npu:/home/admin# sonic-bfb-installer.sh -b 202511_RC_sonic-nvidia-bluefield.bfb -r all
Detected tar archive extracting BFB and SHA256 hash...
Extracted BFB file: /tmp/tmp.xZ6fYNmZPk/sonic-nvidia-bluefield.bfb-intermediate
Found SHA256 hash file: /tmp/tmp.xZ6fYNmZPk/sonic-nvidia-bluefield.bfb-intermediate.sha256
Verifying SHA256 checksum...
SHA256 checksum verification successful

Tested branch (Please provide the tested image version)

  • 202511

Description for the changelog

Make bfb installer install first bfb-intermediate file found inside archive.

Signed-off-by: Connor Roos <croos@nvidia.com>
Signed-off-by: Connor Roos <croos@nvidia.com>
@croos12 croos12 requested a review from lguohan as a code owner February 17, 2026 19:13
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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