mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-19 21:41:05 +02:00
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:
parent
ad992cd984
commit
0e677209da
2
sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/files/systemd-resolv.conf
vendored
Normal file
2
sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/files/systemd-resolv.conf
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
d /run/systemd/network - - - - -
|
||||||
|
L /run/systemd/network/resolv.conf - - - - ../resolve/resolv.conf
|
@ -361,6 +361,7 @@ multilib_src_install_all() {
|
|||||||
mv "${D}"/usr/lib/sysctl.d/50-coredump.conf{,.disabled} || die
|
mv "${D}"/usr/lib/sysctl.d/50-coredump.conf{,.disabled} || die
|
||||||
|
|
||||||
systemd_dotmpfilesd "${FILESDIR}"/systemd-coreos.conf
|
systemd_dotmpfilesd "${FILESDIR}"/systemd-coreos.conf
|
||||||
|
systemd_dotmpfilesd "${FILESDIR}"/systemd-resolv.conf
|
||||||
|
|
||||||
# Don't default to graphical.target
|
# Don't default to graphical.target
|
||||||
rm "${D}"/usr/lib/systemd/system/default.target || die
|
rm "${D}"/usr/lib/systemd/system/default.target || die
|
@ -352,6 +352,7 @@ multilib_src_install_all() {
|
|||||||
mv "${D}"/usr/lib/sysctl.d/50-coredump.conf{,.disabled} || die
|
mv "${D}"/usr/lib/sysctl.d/50-coredump.conf{,.disabled} || die
|
||||||
|
|
||||||
systemd_dotmpfilesd "${FILESDIR}"/systemd-coreos.conf
|
systemd_dotmpfilesd "${FILESDIR}"/systemd-coreos.conf
|
||||||
|
systemd_dotmpfilesd "${FILESDIR}"/systemd-resolv.conf
|
||||||
|
|
||||||
# Don't default to graphical.target
|
# Don't default to graphical.target
|
||||||
rm "${D}"/usr/lib/systemd/system/default.target || die
|
rm "${D}"/usr/lib/systemd/system/default.target || die
|
||||||
|
Loading…
x
Reference in New Issue
Block a user