sys-apps/systemd: update resolv.conf warning

Package-Manager: portage-2.3.0_p16
This commit is contained in:
Mike Gilbert
2016-07-30 11:46:34 -04:00
parent e0d8e57956
commit 6c6cd74d05
+3 -5
View File
@@ -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
}