From 29e9ec04a96c4cd6ca4651af9b34ad7c76741e4e Mon Sep 17 00:00:00 2001 From: Ihor Aleksandrychiev Date: Wed, 24 Jun 2026 10:38:46 +0300 Subject: [PATCH 1/2] Use sudo to read root-owned cloud-init log /var/log/cloud-init-output.log is owned by root, so reading it as an unprivileged user failed with "Permission denied". Signed-off-by: Ihor Aleksandrychiev --- ci/initialize-build-host.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/initialize-build-host.sh b/ci/initialize-build-host.sh index c8203551a..a7ab1cf81 100644 --- a/ci/initialize-build-host.sh +++ b/ci/initialize-build-host.sh @@ -137,7 +137,7 @@ do done echo '========================================= PRINTING CLOUD-INIT LOG ===================================================' -sed 's/^.*/>>> &/' /var/log/cloud-init-output.log || true +sudo sed 's/^.*/>>> &/' /var/log/cloud-init-output.log || true echo '======================================= DONE PRINTING CLOUD-INIT LOG ================================================' if [ $attempts -le 0 ] From 18567b360cbd5d7eefcb7471847bf69926be3b51 Mon Sep 17 00:00:00 2001 From: Ihor Aleksandrychiev Date: Wed, 24 Jun 2026 15:20:02 +0300 Subject: [PATCH 2/2] Distinguished unset from invalid EXPLICIT_ROLE Signed-off-by: Ihor Aleksandrychiev --- build-scripts/compile-options | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build-scripts/compile-options b/build-scripts/compile-options index f73cacf46..12dbee8f4 100644 --- a/build-scripts/compile-options +++ b/build-scripts/compile-options @@ -190,7 +190,11 @@ hub) ROLE=hub ;; *) - log_debug "Bad or unset EXPLICIT_ROLE '$EXPLICIT_ROLE': attempting autodetection" + if [ -z "$EXPLICIT_ROLE" ]; then + log_debug "EXPLICIT_ROLE is unset; attempting to autodetect role" + else + log_error "Bad EXPLICIT_ROLE '$EXPLICIT_ROLE'; attempting to autodetect role" + fi case x"$label" in x) log_debug "label is not set, assuming that this is not the main build job; Setting ROLE=agent."