From 20917ee433e3cdd9e9f48884b03f92cb4bc46c2e Mon Sep 17 00:00:00 2001 From: Stephan Wendel Date: Mon, 5 Aug 2024 12:09:48 +0200 Subject: [PATCH] test: wip Signed-off-by: Stephan Wendel --- src/modules/debug/start_chroot_script | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/modules/debug/start_chroot_script b/src/modules/debug/start_chroot_script index 6ac3a2439..1f11d0f3a 100644 --- a/src/modules/debug/start_chroot_script +++ b/src/modules/debug/start_chroot_script @@ -26,6 +26,33 @@ echo_red "--------------------------------------------------------" systemctl status systemd-resolved +echo_red "--------------------------------------------------------" + +ping -c 2 google.de || true + +echo_red "DEBUG: --------------------------------------------------" + +echo_green "Try to fix --------------------------------------------" + +cat <<- EOF > /etc/systemd/resolved.conf.d/chroot.conf +[Resolve] +DNS=manual +ResolvConf=/etc/resolv.conf +EOF + +systemctl start systemd-resolved + +echo_green "Try to fix --------------------------------------------" + +echo_red "DEBUG: -------------------------------------------------" +cd / +ls -al /run/systemd/resolve/stub-resolv.conf || true + +echo_red "--------------------------------------------------------" + +systemctl status systemd-resolved + + echo_red "--------------------------------------------------------" ping -c 2 google.de || true