Skip to content

Clear /etc/resolv.conf before building image (#12592)#15104

Merged
lguohan merged 1 commit intosonic-net:202111from
liushilongbuaa:202111-fix-test
May 18, 2023
Merged

Clear /etc/resolv.conf before building image (#12592)#15104
lguohan merged 1 commit intosonic-net:202111from
liushilongbuaa:202111-fix-test

Conversation

@liushilongbuaa
Copy link
Copy Markdown
Contributor

@liushilongbuaa liushilongbuaa commented May 17, 2023

Why I did it

Cherry pick PR#12592
nameserver and domain entries from build system fsroot gets into sonic image.

Work item tracking
  • Microsoft ADO (number only):

How I did it

Clear /etc/resolv.conf before building image

How to verify it

Built image with it and verified with install that /etc/resolv.conf is empty

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

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

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)

Why I did it
nameserver and domain entries from build system fsroot gets into sonic image.

How I did it
Clear /etc/resolv.conf before building image

How to verify it
Built image with it and verified with install that /etc/resolv.conf is empty
@liushilongbuaa liushilongbuaa requested a review from lguohan as a code owner May 17, 2023 02:56
@lguohan lguohan merged commit 6efb96c into sonic-net:202111 May 18, 2023
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.

4 participants