]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: delete /etc/resolv.conf to let tmpfiles handle it
authorLuca Boccassi <bluca@debian.org>
Sun, 23 Apr 2023 12:02:06 +0000 (13:02 +0100)
committerLuca Boccassi <bluca@debian.org>
Mon, 24 Apr 2023 09:30:19 +0000 (10:30 +0100)
In case the distribution creates or ships resolv.conf, delete it and let tmpfiles handle it

mkosi.postinst

index a71878b9397792b5955bdeee0e045b7dda5168a7..279fe6c99ef02196b5482a83d7a715f3de1e1a60 100755 (executable)
@@ -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