systemd: add compatibility symlink for resolv.conf

In 215 resolv.conf moved from /run/systemd/network to
/run/systemd/resolv but there isn't anything to fix references to the
old location (namely existing /etc/resolv.conf symlinks after upgrades).
Adding this rule ensures that those links or any other references
continue to work as they did before.
This commit is contained in:
Michael Marineau 2014-07-15 17:24:05 -07:00
parent ad992cd984
commit 0e677209da
3 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,2 @@
d /run/systemd/network - - - - -
L /run/systemd/network/resolv.conf - - - - ../resolve/resolv.conf

View File

@ -361,6 +361,7 @@ multilib_src_install_all() {
mv "${D}"/usr/lib/sysctl.d/50-coredump.conf{,.disabled} || die
systemd_dotmpfilesd "${FILESDIR}"/systemd-coreos.conf
systemd_dotmpfilesd "${FILESDIR}"/systemd-resolv.conf
# Don't default to graphical.target
rm "${D}"/usr/lib/systemd/system/default.target || die

View File

@ -352,6 +352,7 @@ multilib_src_install_all() {
mv "${D}"/usr/lib/sysctl.d/50-coredump.conf{,.disabled} || die
systemd_dotmpfilesd "${FILESDIR}"/systemd-coreos.conf
systemd_dotmpfilesd "${FILESDIR}"/systemd-resolv.conf
# Don't default to graphical.target
rm "${D}"/usr/lib/systemd/system/default.target || die