Skip to content

Fix bookworm reproducible build permission issue#20452

Merged
yejianquan merged 1 commit intosonic-net:masterfrom
matofeder:fix_buildinfo_base
Jan 8, 2026
Merged

Fix bookworm reproducible build permission issue#20452
yejianquan merged 1 commit intosonic-net:masterfrom
matofeder:fix_buildinfo_base

Conversation

@matofeder
Copy link
Copy Markdown
Contributor

Why I did it

make configure for broadcom reports Permission denied issue

make configure PLATFORM=broadcom 
....
"LEGACY_SONIC_MGMT_DOCKER"        : "y"
"INCLUDE_EXTERNAL_PATCHES"        : "n"
"PTF_ENV_PY_VER"                  : "mixed"

mv: cannot move '/etc/apt/sources.list.d/debian.sources' to '/etc/apt/sources.list.d/debian.sources.back': Permission denied
"SONIC_DPKG_CACHE_METHOD"         : "none"

make[1]: Leaving directory '/home/ubuntu/sonic-buildimage'

How I did it

I resolved it by adding escalated sudo privileges.

For more details, see the related PR and discussion:
#18789

How to verify it

make configure PLATFORM=broadcom should pass without permission issues

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

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)

This commit resolves a permission denied issue during the mv command in bookworm
by adding escalated sudo privileges. For more details, see the related PR
and discussion:
sonic-net#18789

Signed-off-by: Matej Feder <[email protected]>
@arlakshm
Copy link
Copy Markdown
Contributor

/Azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@liushilongbuaa
Copy link
Copy Markdown
Contributor

liushilongbuaa commented Dec 23, 2025

@arlakshm , Please pass EasyCLA. Why Semgrep didn't start?

@liushilongbuaa
Copy link
Copy Markdown
Contributor

close and reopen to refresh checks.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Contributor

@yejianquan yejianquan left a comment

Choose a reason for hiding this comment

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

LGTM

@yejianquan yejianquan merged commit b359c7e into sonic-net:master Jan 8, 2026
22 checks passed
jasonbridges pushed a commit to jasonbridges/sonic-buildimage that referenced this pull request Jan 22, 2026
This commit resolves a permission denied issue during the mv command in bookworm
by adding escalated sudo privileges. For more details, see the related PR
and discussion:
sonic-net#18789

Why I did it
make configure for broadcom reports Permission denied issue

make configure PLATFORM=broadcom 
....
"LEGACY_SONIC_MGMT_DOCKER"        : "y"
"INCLUDE_EXTERNAL_PATCHES"        : "n"
"PTF_ENV_PY_VER"                  : "mixed"

mv: cannot move '/etc/apt/sources.list.d/debian.sources' to '/etc/apt/sources.list.d/debian.sources.back': Permission denied
"SONIC_DPKG_CACHE_METHOD"         : "none"

make[1]: Leaving directory '/home/ubuntu/sonic-buildimage'
How I did it
I resolved it by adding escalated sudo privileges.

For more details, see the related PR and discussion:
sonic-net#18789

How to verify it
make configure PLATFORM=broadcom should pass without permission issues

Signed-off-by: Matej Feder <[email protected]>
FengPan-Frank pushed a commit to FengPan-Frank/sonic-buildimage that referenced this pull request Mar 6, 2026
This commit resolves a permission denied issue during the mv command in bookworm
by adding escalated sudo privileges. For more details, see the related PR
and discussion:
sonic-net#18789

Why I did it
make configure for broadcom reports Permission denied issue

make configure PLATFORM=broadcom
....
"LEGACY_SONIC_MGMT_DOCKER"        : "y"
"INCLUDE_EXTERNAL_PATCHES"        : "n"
"PTF_ENV_PY_VER"                  : "mixed"

mv: cannot move '/etc/apt/sources.list.d/debian.sources' to '/etc/apt/sources.list.d/debian.sources.back': Permission denied
"SONIC_DPKG_CACHE_METHOD"         : "none"

make[1]: Leaving directory '/home/ubuntu/sonic-buildimage'
How I did it
I resolved it by adding escalated sudo privileges.

For more details, see the related PR and discussion:
sonic-net#18789

How to verify it
make configure PLATFORM=broadcom should pass without permission issues

Signed-off-by: Matej Feder <[email protected]>
Signed-off-by: Feng Pan <[email protected]>
dprital pushed a commit that referenced this pull request Mar 19, 2026
This commit resolves a permission denied issue during the mv command in bookworm
by adding escalated sudo privileges. For more details, see the related PR
and discussion:
#18789

Why I did it
make configure for broadcom reports Permission denied issue

make configure PLATFORM=broadcom
....
"LEGACY_SONIC_MGMT_DOCKER"        : "y"
"INCLUDE_EXTERNAL_PATCHES"        : "n"
"PTF_ENV_PY_VER"                  : "mixed"

mv: cannot move '/etc/apt/sources.list.d/debian.sources' to '/etc/apt/sources.list.d/debian.sources.back': Permission denied
"SONIC_DPKG_CACHE_METHOD"         : "none"

make[1]: Leaving directory '/home/ubuntu/sonic-buildimage'
How I did it
I resolved it by adding escalated sudo privileges.

For more details, see the related PR and discussion:
#18789

How to verify it
make configure PLATFORM=broadcom should pass without permission issues

Signed-off-by: Matej Feder <[email protected]>
Signed-off-by: dprital <[email protected]>
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.

5 participants