diff --git a/1.Base/4.cockpit/0_setup.py b/1.Base/4.cockpit/0_setup.py index c09f265bf5f3942028892f62aa7f49d406062d5e..488e3b28ca41a18219309fcf9d51127bbe884fce 100644 --- a/1.Base/4.cockpit/0_setup.py +++ b/1.Base/4.cockpit/0_setup.py @@ -11,7 +11,7 @@ def setup(interactive=False): 'apt purge --auto-remove -y netplan.io', 'mkdir -p /etc/NetworkManager/conf.d', 'touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf', - 'rm /etc/resolv.conf && cp /run/systemd/resolve/resolv.conf /etc/resolv.conf', + 'ls /run/systemd/resolve/resolv.conf && rm /etc/resolv.conf && cp /run/systemd/resolve/resolv.conf /etc/resolv.conf', 'systemctl disable --now systemd-resolved.service', 'printf "[main]\ndns=default" > /etc/NetworkManager/conf.d/disable-systemd-resolved.conf', ]