Revert "arch-chroot: bind mount over a /etc/resolv.conf symlink"
Compare changes
Files
2+ 1
− 1
Due to an influx of spam, we have had to temporarily disable account registrations. Please write an email to accountsupport@archlinux.org, with your desired username, if you want to get access. Sorry for the inconvenience.
This reverts commit 4d3aec66.
util-linux upstream has reverted https://github.com/util-linux/util-linux/commit/1b2d8187360157b00b47f52522fc039d82e34e6b due to regression, and we cannot rely on --no-canonicalize to mount over symlink. Furthermore, the canonicalization of the source resolv.conf should not be disabled, otherwise a symlink to a file on host might be bind mounted into chroot, which would still behave spuriously.
Hence, let's revert this for now. A new mount option X-mount.nocanonicalize= is scheduled for util-linux v2.41 which adds fine-grained control in that regard. A FIXME is added to make use of that later.
cc @nl6720