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

arch-chroot: bind mount over a /etc/resolv.conf symlink #57

Merged
merged 1 commit into from
Sep 9, 2023
Merged

arch-chroot: bind mount over a /etc/resolv.conf symlink #57

merged 1 commit into from
Sep 9, 2023

Conversation

nl6720
Copy link
Member

@nl6720 nl6720 commented Aug 2, 2023

Use mount's a -c/--no-canonicalize option to ensure the bind mount to /etc/resolv.conf in the chroot directory is mounted correctly. This avoids issues when the chroot's /etc/resolv.conf is a symlink.

Fixes https://github.com/archlinux/arch-install-scripts/issues/55
Related to util-linux/util-linux#2370

@Foxboron Foxboron self-assigned this Aug 6, 2023
@YHNdnzj
Copy link
Contributor

YHNdnzj commented Aug 8, 2023

Maybe also bump the required util-linux version in README?

@nl6720
Copy link
Member Author

nl6720 commented Aug 8, 2023

Maybe also bump the required util-linux version in README?

To 2.39.1?

Use mount's a -c/--no-canonicalize option to ensure the bind mount to
/etc/resolv.conf in the chroot directory is mounted correctly.
This avoids issues when the chroot's /etc/resolv.conf is a symlink.

Bump required util-linux version to 2.39 which supports the new mount
API.

Fixes https://github.com/archlinux/arch-install-scripts/issues/55
Related to util-linux/util-linux#2370
@nl6720
Copy link
Member Author

nl6720 commented Aug 11, 2023

@Foxboron Foxboron merged commit 2249315 into archlinux:master Sep 9, 2023
2 checks passed
@nl6720 nl6720 deleted the resolv.conf-symlink branch September 10, 2023 08:30
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.

/etc/resolv.conf is not bind-mounted if the target is a symlink
3 participants