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

Systemd image /etc/resolv.conf not a symlink. #130

Open
jonesmz opened this issue Jan 17, 2022 · 1 comment
Open

Systemd image /etc/resolv.conf not a symlink. #130

jonesmz opened this issue Jan 17, 2022 · 1 comment

Comments

@jonesmz
Copy link
Contributor

jonesmz commented Jan 17, 2022

But it has the systemd documentation text at the top

# This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8).
# Do not edit.
#
# This file might be symlinked as /etc/resolv.conf. If you're looking at
# /etc/resolv.conf and seeing this text, you have followed the symlink.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs should typically not access this file directly, but only
# through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
# different way, replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

This means at some point in the image build, the /etc/resolv.conf file is being converted from a symlink back to a plaintext file.

@jonesmz
Copy link
Contributor Author

jonesmz commented Jan 17, 2022

Notably, this is not happening as part of the post-compile step of building the .img file.
Manually inspecting the chroot directory shows the file is not a symlink.

@jonesmz jonesmz mentioned this issue Sep 13, 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

No branches or pull requests

1 participant