From b1fd2c9d1f5f5a6281c76dd4dd8ce658150e6f1d Mon Sep 17 00:00:00 2001 From: Stephan Wendel Date: Mon, 5 Aug 2024 11:54:13 +0200 Subject: [PATCH] test: debug dns resolve on armbian based images Signed-off-by: Stephan Wendel --- .github/workflow_config.yml | 12 +++++------ config/armbian/default | 3 ++- src/modules/debug/config | 1 + src/modules/debug/start_chroot_script | 31 +++++++++++++++++++++++++++ 4 files changed, 40 insertions(+), 7 deletions(-) create mode 100644 src/modules/debug/config create mode 100644 src/modules/debug/start_chroot_script diff --git a/.github/workflow_config.yml b/.github/workflow_config.yml index 1e6b40b30..e13dc70c0 100644 --- a/.github/workflow_config.yml +++ b/.github/workflow_config.yml @@ -16,16 +16,16 @@ buildtest: # armbian based images - - armbian/bananapim2zero - - armbian/orangepi3lts + # - armbian/bananapim2zero + # - armbian/orangepi3lts - armbian/orangepi4lts - - armbian/orangepi_zero2 + # - armbian/orangepi_zero2 # Orange Pi OS based images # Raspberry Pi OS based images - - raspberry/rpi32 - - raspberry/rpi64 + # - raspberry/rpi32 + # - raspberry/rpi64 # rpi 64 with KS - - raspberry/rpi64-ks + # - raspberry/rpi64-ks # This is used to setup release build chain. # Each entry will be used in setup matrix for releases diff --git a/config/armbian/default b/config/armbian/default index ed699d4a8..21a31141a 100644 --- a/config/armbian/default +++ b/config/armbian/default @@ -23,7 +23,8 @@ BASE_IMAGE_RESIZEROOT=600 # Compress not needed due compression done in workflow BASE_RELEASE_COMPRESS=no # Modules are valid for 32bit and 64bit images -MODULES="base(pkgupgrade,udev_fix,armbian(armbian_net,mainsailos,klipper,is_req_preinstall,moonraker,mainsail,timelapse,crowsnest,sonar))" +# MODULES="base(pkgupgrade,udev_fix,armbian(armbian_net,mainsailos,klipper,is_req_preinstall,moonraker,mainsail,timelapse,crowsnest,sonar))" +MODULES="base(debug)" # export Variables export DOWNLOAD_BASE_URL diff --git a/src/modules/debug/config b/src/modules/debug/config new file mode 100644 index 000000000..e484f8b84 --- /dev/null +++ b/src/modules/debug/config @@ -0,0 +1 @@ +# Intentionally left blank diff --git a/src/modules/debug/start_chroot_script b/src/modules/debug/start_chroot_script new file mode 100644 index 000000000..2113c24de --- /dev/null +++ b/src/modules/debug/start_chroot_script @@ -0,0 +1,31 @@ +#!/usr/bin/env bash + +## Source error handling, leave this in place +set -Eex + +## Set LC_ALL to prevent errors +export LC_ALL=C + +# Set DEBIAN_FRONTEND to noninteractive +if [[ "${DEBIAN_FRONTEND}" != "noninteractive" ]]; then + export DEBIAN_FRONTEND=noninteractive +fi + +## Source CustomPIOS common.sh +# shellcheck disable=SC1091 +source /common.sh +install_cleanup_trap + + +echo_red "DEBUG: -------------------------------------------------" +cd / +ls -al /run/systemd/resolve/stub-resolv.conf + +echo_red "--------------------------------------------------------" + +systemctl status systemd-resolved + + + + +echo_red "DEBUG: --------------------------------------------------"