From: Luca Boccassi Date: Sun, 23 Apr 2023 12:02:06 +0000 (+0100) Subject: mkosi: delete /etc/resolv.conf to let tmpfiles handle it X-Git-Tag: v254-rc1~661^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cd64af54db0776176275f77ed769f5022616aac;p=thirdparty%2Fsystemd.git mkosi: delete /etc/resolv.conf to let tmpfiles handle it In case the distribution creates or ships resolv.conf, delete it and let tmpfiles handle it --- diff --git a/mkosi.postinst b/mkosi.postinst index a71878b9397..279fe6c99ef 100755 --- a/mkosi.postinst +++ b/mkosi.postinst @@ -75,3 +75,6 @@ if command -v authselect >/dev/null; then authselect enable-feature with-homed fi fi + +# Let tmpfiles.d/systemd-resolve.conf handle the symlink +rm -f /etc/resolv.conf