1 |
commit: ba61a756c4ad1b0b1c21ae2d8729b19214cfefb7 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 31 00:38:14 2016 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 31 00:46:02 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba61a756 |
7 |
|
8 |
sys-apps/systemd: fix resolv.conf message |
9 |
|
10 |
Thanks to novns in #gentoo-systemd. |
11 |
|
12 |
sys-apps/systemd/systemd-231.ebuild | 2 +- |
13 |
sys-apps/systemd/systemd-9999.ebuild | 2 +- |
14 |
2 files changed, 2 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/sys-apps/systemd/systemd-231.ebuild b/sys-apps/systemd/systemd-231.ebuild |
17 |
index 3516936..b4f2613 100644 |
18 |
--- a/sys-apps/systemd/systemd-231.ebuild |
19 |
+++ b/sys-apps/systemd/systemd-231.ebuild |
20 |
@@ -434,7 +434,7 @@ pkg_postinst() { |
21 |
|
22 |
if [[ $(readlink "${ROOT}"etc/resolv.conf) == */run/systemd/* ]]; then |
23 |
ewarn "You should replace the resolv.conf symlink:" |
24 |
- ewarn "ln -snf ${ROOTPREFIX}/lib/systemd ${ROOT}etc/resolv.conf" |
25 |
+ ewarn "ln -snf ${ROOTPREFIX-/usr}/lib/systemd/resolv.conf ${ROOT}etc/resolv.conf" |
26 |
fi |
27 |
} |
28 |
|
29 |
|
30 |
diff --git a/sys-apps/systemd/systemd-9999.ebuild b/sys-apps/systemd/systemd-9999.ebuild |
31 |
index 3516936..b4f2613 100644 |
32 |
--- a/sys-apps/systemd/systemd-9999.ebuild |
33 |
+++ b/sys-apps/systemd/systemd-9999.ebuild |
34 |
@@ -434,7 +434,7 @@ pkg_postinst() { |
35 |
|
36 |
if [[ $(readlink "${ROOT}"etc/resolv.conf) == */run/systemd/* ]]; then |
37 |
ewarn "You should replace the resolv.conf symlink:" |
38 |
- ewarn "ln -snf ${ROOTPREFIX}/lib/systemd ${ROOT}etc/resolv.conf" |
39 |
+ ewarn "ln -snf ${ROOTPREFIX-/usr}/lib/systemd/resolv.conf ${ROOT}etc/resolv.conf" |
40 |
fi |
41 |
} |