From 7cd64af54db0776176275f77ed769f5022616aac Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sun, 23 Apr 2023 13:02:06 +0100 Subject: [PATCH] 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 --- mkosi.postinst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mkosi.postinst b/mkosi.postinst index a71878b939..279fe6c99e 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 -- 2.25.1