Clear /etc/resolv.conf before building image#12592
Clear /etc/resolv.conf before building image#12592yxieca merged 5 commits intosonic-net:masterfrom devpatha:master
Conversation
If config_db.json is missing hostname entry, hostname-config.sh ends up deleting existing entry too and hostname changes to default 'localhost'
|
Do we currently have a way of configuring the DNS settings through minigraph or CLI? Also, there are test cases in sonic-mgmt that assume that DNS is properly configured and available. That will need updating. |
|
Why I did it How I did it How to verify it |
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
|
This commit could not be cleanly cherry-picked to 202012. Please submit another PR. |
I created #12686 for 202012. |
Merged |
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
Cherry pick PR#12592 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 Co-authored-by: Devesh Pathak <[email protected]>
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
Which release branch to backport (provide reason below if selected)
Description for the changelog
Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)