mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
sys-apps/systemd: update resolv.conf warning
Package-Manager: portage-2.3.0_p16
This commit is contained in:
@@ -480,11 +480,9 @@ pkg_postinst() {
|
||||
eerror
|
||||
fi
|
||||
|
||||
if [[ $(readlink "${ROOT}"/etc/resolv.conf) == */run/systemd/network/resolv.conf ]]; then
|
||||
ewarn "resolv.conf is now generated by systemd-resolved. To use it, enable"
|
||||
ewarn "systemd-resolved.service, and create a symlink from /etc/resolv.conf"
|
||||
ewarn "to /run/systemd/resolve/resolv.conf"
|
||||
ewarn
|
||||
if [[ $(readlink "${ROOT}"etc/resolv.conf) == */run/systemd/* ]]; then
|
||||
ewarn "You should replace the resolv.conf symlink:"
|
||||
ewarn "ln -snf ${ROOTPREFIX}/lib/systemd ${ROOT}etc/resolv.conf"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user