wrong resolv.conf link when customizing older iso than host OS

Asked by Niccola

I am customizing Ubuntu 16.04.6 LTS from current installed 18.04 LTS. When it comes to chroot I without internet access (DNS lookup not working). The same doesn't happens while customizing from host OS 16.04.6 LTS (same version).

It appears that automatic resolv.conf link script its considering only same host Operating System.

SOME INFORMATION:

/etc/resolv.conf is pointing to /run/resolvconf/resolv.conf but link is broken (/run/resolvconf doesn't exists). Some instructions says to be symlinked to /run/systemd/resolve/resolve.conf which is not true on this case.

may I remove link and recreate link to /run/systemd/resolve/resolve.conf ???

Question information

Language:
English Edit question
Status:
Answered
For:
Cubic Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Cubic PPA (cubic-wizard) said :
#1

Yes.
You can do whatever you need to in your chroot environment to customize and it to make it work.
Ubuntu changed the way they do networking so, in some cases, you will need to manually setup resolv.conf.

Revision history for this message
Cubic PPA (cubic-wizard) said :
#2

For others experiencing this issue, Niccola solved it as follows:

(See https://bugs.launchpad.net/cubic/+bug/1838988/comments/2)
- - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - -
what I did to solve is:

remove link /etc/resolv.conf, then recreated as:

ln -sr /run/systemd/resolve/resolv.conf /etc/resolv.conf
- - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - -

Can you help with this problem?

Provide an answer of your own, or ask Niccola for more information if necessary.

To post a message you must log in.