sys-apps/systemd: update resolv.conf warning
authorMike Gilbert <floppym@gentoo.org>
Sat, 30 Jul 2016 14:48:01 +0000 (10:48 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sat, 30 Jul 2016 15:46:34 +0000 (11:46 -0400)
Package-Manager: portage-2.3.0_p16

sys-apps/systemd/systemd-9999.ebuild

index a470187a1ce79dcb10f2f2414392f6e48d1a11a7..b0e8183ab0a4eec1355a0ee8d5eeccfe081b1dcf 100644 (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
 }