From 6da0a473be6955d23c0418822929d304af491eb4 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Tue, 25 Oct 2022 18:02:28 -0600 Subject: [PATCH] use old resolv.conf until systemd is on --- build/lib/scripts/postinst | 1 + 1 file changed, 1 insertion(+) diff --git a/build/lib/scripts/postinst b/build/lib/scripts/postinst index 58e418c9d..224a15ea0 100755 --- a/build/lib/scripts/postinst +++ b/build/lib/scripts/postinst @@ -29,6 +29,7 @@ ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime # switch to systemd-resolved & network-manager echo "#" > /etc/network/interfaces +[ -f /run/systemd/resolve/stub-resolv.conf ] || mkdir -p /run/systemd/resolve && cp /etc/resolv.conf /run/systemd/resolve/stub-resolv.conf ln -rsf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf cat << EOF > /etc/NetworkManager/NetworkManager.conf [main]