From 577f29cd43c78ba24b9f7ab3db6d38a8ee65d8d3 Mon Sep 17 00:00:00 2001 From: ckyrouac Date: Mon, 5 May 2025 11:38:52 -0400 Subject: [PATCH] reinstall: Pass RUST_LOG env var into bootc install container This enables `RUST_LOG=trace system-reinstall-bootc ` to print trace messages for the bootc install invocation. Signed-off-by: ckyrouac --- system-reinstall-bootc/src/podman.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system-reinstall-bootc/src/podman.rs b/system-reinstall-bootc/src/podman.rs index b5ddc5b8b..329eca461 100644 --- a/system-reinstall-bootc/src/podman.rs +++ b/system-reinstall-bootc/src/podman.rs @@ -32,6 +32,11 @@ pub(crate) fn reinstall_command(image: &str, ssh_key_file: &str) -> Command { .map(String::from) .to_vec(); + // Pass along RUST_LOG from the host to enable detailed output from the bootc command + if let Ok(rust_log) = std::env::var("RUST_LOG") { + podman_command_and_args.push(format!("--env=RUST_LOG={rust_log}")); + } + let mut bootc_command_and_args = [ "bootc", "install",