Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken symlink for resolv.conf #278

Open
JustANormalTinker opened this issue Oct 27, 2022 · 2 comments
Open

Broken symlink for resolv.conf #278

JustANormalTinker opened this issue Oct 27, 2022 · 2 comments

Comments

@JustANormalTinker
Copy link

I hijacked an arch system and installed a ubuntu strata, everything was fine until I rebooted and then DNS was not working. After investigation I found out that /etc/resolv.conf points to /run/systemd/resolve/stub-resolv.conf, this file does not exist nor does the directory /run/systemd/resolve exist. Modifying /etc/resolvconf/update.d/00bedrock doesn't not work as after rebooting it still points to /run/systemd/resolve/stub-resolve.conf

After creating /run/systemd/resolve/stub-resolve.conf and restarting NetworkManager everything works fine.

Here is my modified /etc/resolvconfig/update.d/00bedrock

if [ -e /etc/resolv.conf ] || [ -h /etc/resolv.conf ]; then
        exit
fi

for f in /etc/resolvconf/run/resolv.conf \
                /run/resolvconf/resolv.conf \
                /run/NetworkManager/resolv.conf \
                ; do
        if [ -e "${f}" ]; then
                ln -s "${f}" /etc/resolv.conf
                exit
        fi
done
@JustANormalTinker
Copy link
Author

After installing a void strata it works fine????

@paradigm
Copy link
Member

I poked around but don't have any guesses for what happened here. Per the comment in the 00bedrock script you found, Bedrock deletes /etc/resolv.conf at boot so the bad resolv.conf you found was probably not inherited from another distro's init. Moreover, the script should only create the symlink if it sees the file there - since you didn't see the file, it shouldn't have done that. I have no idea how installing a new stratum (of any distro), but not booting with its init or otherwise launching its networking stack would change things here.

Happy to hear that, whatever it was, it's resolved now.

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

No branches or pull requests

2 participants