From 6f2bd3d81401e1d82ebfb0c46c11bc565b46d2c3 Mon Sep 17 00:00:00 2001 From: Stephan Wendel Date: Mon, 5 Aug 2024 13:45:32 +0200 Subject: [PATCH] test: wip Signed-off-by: Stephan Wendel --- src/modules/debug/start_chroot_script | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/modules/debug/start_chroot_script b/src/modules/debug/start_chroot_script index 122d58151..bbc51fa9c 100644 --- a/src/modules/debug/start_chroot_script +++ b/src/modules/debug/start_chroot_script @@ -20,10 +20,10 @@ install_cleanup_trap echo_red "DEBUG: -------------------------------------------------" cd / ls -al /run/systemd/resolve/stub-resolv.conf || true +cat /run/systemd/resolve/stub-resolv.conf || true echo_red "--------------------------------------------------------" -systemctl status systemd-resolved echo_red "--------------------------------------------------------" @@ -37,7 +37,31 @@ ping -c 2 google.de || true echo_red "DEBUG: --------------------------------------------------" +echo_green "Try to alter dns ---------------------------------------" +ln -sf /etc/resolv.conf /run/systemd/resolve/stub-resolv.conf + +echo_green "Try to alter dns ---------------------------------------" + +echo_red "DEBUG: -------------------------------------------------" +cd / +ls -al /run/systemd/resolve/stub-resolv.conf || true +cat /run/systemd/resolve/stub-resolv.conf || true + +echo_red "--------------------------------------------------------" + + + +echo_red "--------------------------------------------------------" + +resolvectl status + +echo_red "--------------------------------------------------------" + + +ping -c 2 google.de || true + +echo_red "DEBUG: --------------------------------------------------" # Let it fail anyways! exit 1