Skip to content

manage-config: guard secureboot config append - #605

Open
arista-hpandya wants to merge 1 commit into
sonic-net:masterfrom
arista-hpandya:handle-no-new-lines-in-manage-config
Open

manage-config: guard secureboot config append#605
arista-hpandya wants to merge 1 commit into
sonic-net:masterfrom
arista-hpandya:handle-no-new-lines-in-manage-config

Conversation

@arista-hpandya

Copy link
Copy Markdown

Add a newline before appending the secureboot config so fragments cannot be concatenated when config.sonic lacks a trailing newline. Also factor the config paths into variables for reuse.

@arista-hpandya
arista-hpandya requested a review from a team as a code owner August 4, 2026 19:05
@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Add a newline before appending the secureboot config so fragments cannot
be concatenated when config.sonic lacks a trailing newline. Also factor
the config paths into variables for reuse.

Signed-off-by: arista-hpandya <[email protected]>
@arista-hpandya
arista-hpandya force-pushed the handle-no-new-lines-in-manage-config branch from 5cc5e14 to 257b8bc Compare August 5, 2026 05:09
@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@saiarcot895

Copy link
Copy Markdown
Contributor

Does the file not currently contain a trailing newline? IMO, this is something that should be fixed in the actual sources, not worked around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants