Skip to content

Commit 577f29c

Browse files
committed
reinstall: Pass RUST_LOG env var into bootc install container
This enables `RUST_LOG=trace system-reinstall-bootc <image>` to print trace messages for the bootc install invocation. Signed-off-by: ckyrouac <[email protected]>
1 parent 578063b commit 577f29c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

system-reinstall-bootc/src/podman.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ pub(crate) fn reinstall_command(image: &str, ssh_key_file: &str) -> Command {
3232
.map(String::from)
3333
.to_vec();
3434

35+
// Pass along RUST_LOG from the host to enable detailed output from the bootc command
36+
if let Ok(rust_log) = std::env::var("RUST_LOG") {
37+
podman_command_and_args.push(format!("--env=RUST_LOG={rust_log}"));
38+
}
39+
3540
let mut bootc_command_and_args = [
3641
"bootc",
3742
"install",

0 commit comments

Comments
 (0)