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]