From 44cb9c112e50b4aff5a910eb8dcca361b40922ef Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Thu, 29 May 2025 13:39:43 +0300 Subject: [PATCH] Move systemd-resolved configuration to the end --- .bin/create_container | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.bin/create_container b/.bin/create_container index 81507cc..4133584 100755 --- a/.bin/create_container +++ b/.bin/create_container @@ -113,7 +113,7 @@ elif [[ "$ID" == "debian" ]]; then fi apt-get update -apt-get install --yes --no-install-recommends locales dbus ssh python3 libnss-resolve +apt-get install --yes --no-install-recommends locales dbus ssh python3 echo "locales locales/default_environment_locale select en_US.UTF-8" | debconf-set-selections echo "locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8, et_EE.UTF-8 UTF-8" | debconf-set-selections @@ -128,6 +128,9 @@ ln -sf /usr/share/nvim/runtime/macros/less.sh /usr/local/bin/vless systemctl enable systemd-networkd + +# systemd-resolved package also replaces /etc/resolv.conf with a symlink that breaks DNS in our current pre setup environment +apt install --yes --no-install-recommends libnss-resolve # Needed by libnss-resolve config in /etc/nsswitch.conf systemctl enable systemd-resolved EOF