sys-apps/systemd: fix resolv.conf message
authorMike Gilbert <floppym@gentoo.org>
Sun, 31 Jul 2016 00:38:14 +0000 (20:38 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sun, 31 Jul 2016 00:46:02 +0000 (20:46 -0400)
Thanks to novns in #gentoo-systemd.

sys-apps/systemd/systemd-231.ebuild
sys-apps/systemd/systemd-9999.ebuild

index 3516936eac32463815e4b1b017d5f991fb1f3e7d..b4f261317768f49e1bd2f04ec5ccc3817dc9cd5a 100644 (file)
@@ -434,7 +434,7 @@ pkg_postinst() {
 
        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"
+               ewarn "ln -snf ${ROOTPREFIX-/usr}/lib/systemd/resolv.conf ${ROOT}etc/resolv.conf"
        fi
 }
 
index 3516936eac32463815e4b1b017d5f991fb1f3e7d..b4f261317768f49e1bd2f04ec5ccc3817dc9cd5a 100644 (file)
@@ -434,7 +434,7 @@ pkg_postinst() {
 
        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"
+               ewarn "ln -snf ${ROOTPREFIX-/usr}/lib/systemd/resolv.conf ${ROOT}etc/resolv.conf"
        fi
 }