Skip to content

[202205] [sonic_installer] use /etc/resolv.conf from the host when migrating packages (#2573)#2575

Merged
liat-grozovik merged 1 commit intosonic-net:202205from
liorghub:resolve_202205
Jan 3, 2023
Merged

[202205] [sonic_installer] use /etc/resolv.conf from the host when migrating packages (#2573)#2575
liat-grozovik merged 1 commit intosonic-net:202205from
liorghub:resolve_202205

Conversation

@liorghub
Copy link
Contributor

@liorghub liorghub commented Jan 2, 2023

What I did

SONiC package migration has been failing due to the lack of DNS configuration for registries domain names.
I used /etc/resolv.conf from host OS when migrating.

Based on PR #2573

How I did it

Copy /etc/resolv.conf into new image filesystem during migration, then, restore it back.

How to verify it

Run sonic-installer install.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@liat-grozovik liat-grozovik merged commit c9ed09d into sonic-net:202205 Jan 3, 2023
@liat-grozovik liat-grozovik changed the title [sonic_installer] use /etc/resolv.conf from the host when migrating packages [sonic_installer] use /etc/resolv.conf from the host when migrating packages (#2573) Jan 3, 2023
@liat-grozovik liat-grozovik changed the title [sonic_installer] use /etc/resolv.conf from the host when migrating packages (#2573) [202205] [sonic_installer] use /etc/resolv.conf from the host when migrating packages (#2573) Jan 3, 2023
dprital added a commit to dprital/sonic-buildimage that referenced this pull request Jan 3, 2023
Update sonic-utilities submodule pointer to include the following:
* c9ed09d [202205] [sonic_installer] use /etc/resolv.conf from the host when migrating packages (sonic-net#2573) ([sonic-net#2575](sonic-net/sonic-utilities#2575))

Signed-off-by: dprital <drorp@nvidia.com>
liat-grozovik pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Jan 3, 2023
Update sonic-utilities submodule pointer to include the following:
* c9ed09d [202205] [sonic_installer] use /etc/resolv.conf from the host when migrating packages (#2573) ([#2575](sonic-net/sonic-utilities#2575))

Signed-off-by: dprital <drorp@nvidia.com>
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